Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-2009, 04:33 AM
Active Member
 
Posts: 34
Exclamation DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL"

I did a basic installation of Debian, which will be used for a mail server "ZIMBRA". I Installed the bind9 and did the configuration of the zones and created the files in the directory / etc / bind.
After the process I typed the following command to test my DNS:

nslookup mail.hotelpart.com and presented the following error:



**************************************************
* mail:/# nslookup mail.hotelpart.com *
* Server: 127.0.0.1 *
* Address: 127.0.0.1#53 *
* *
*** server can't find mail.hoteldofrade.com: SERVFAIL *
**************************************************

I would enlist the help of you to resolve this problem that I have some time I'm trying to solve:

Easier to stay I put my files in message: The files named.conf, db.hotelpart.com and db.111.20.11.200.

-------------------------------------------------------------------------

File named.conf


// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

zone "hotelpart.com"{
notify no;
type master;
file "/etc/bind/db.hotelpart.com";
};

zone "111.20.11.200.in-addr.arpa"{
notify no;
type master;
file "/etc/bind/db.111.20.11.200";
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

// From the release notes:
// Because many of our users are uncomfortable receiving undelegated answers
// from root or top level domains, other than a few for whom that behaviour
// has been trusted and expected for quite some length of time, we have now
// introduced the "root-delegations-only" feature which applies delegation-only
// logic to all top level domains, and to the root domain. An exception list
// should be specified, including "MUSEUM" and "DE", and any other top level
// domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";


-------------------------------------------------------------------------

File db.hotelpart.com

;
; BIND data file for local loopback interface
;
$TTL 86400
@ IN SOA mail.hotelpart.com. root.hotelpart.com. (
1 ; Serial
3600 ; Refresh
86400 ; Retry
2419200 ; Expire
3600
)
;
@ IN NS localhost
@ IN MX 5 mail.hotelpart.com
localhost IN A 127.0.0.1
www IN A 200.11.20.111
mail IN A 200.11.20.111

-------------------------------------------------------------------------

File db.111.20.11.200

;
; BIND data file for local loopback interface
;
$TTL 86400
@ IN SOA mail.hotelpart.com. root.hotelpart.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN MX mail.hotelpart.com.
@ IN A 200.11.20.111
@ IN PTR mail.hotelpart.com.


Thanks!!!

I count on the help of you!!!

Last edited by jcvalim; 04-02-2009 at 04:47 AM..
Reply With Quote
  #2 (permalink)  
Old 04-02-2009, 04:41 AM
Moderator
 
Posts: 7,928
Default

Have you updated /etc/resolv.conf to point to the BIND server ? Please post the following
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig hotelpart.com mx
dig hotelpart.com any
host `hostname` <- note backticks and not single quotes
__________________
Reply With Quote
  #3 (permalink)  
Old 04-02-2009, 05:12 AM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by uxbod View Post
Have you updated /etc/resolv.conf to point to the BIND server ? Please post the following
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig hotelpart.com mx
dig hotelpart.com any
host `hostname` <- note backticks and not single quotes
My file resolv.conf

mail:~# cat /etc/hosts
127.0.0.1 localhost
201.18.17.118 mail.hotelpart.com mail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

dig hotelpart.com mx

mail:~# dig hotelpart.com mx

; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 8763
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotelpart.com. IN MX

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Apr 2 06:02:56 2009
;; MSG SIZE rcvd: 34


dig hotelpart.com any

mail:~# dig hotelpart.com any

; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3035
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotelpart.com. IN ANY

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Apr 2 06:05:09 2009
;; MSG SIZE rcvd: 34

host `hostname`

mail:~# host `hostname`
Host mail not found: 3(NXDOMAIN)
Reply With Quote
  #4 (permalink)  
Old 04-02-2009, 05:37 AM
Moderator
 
Posts: 7,928
Default

Have you updated your /etc/resolv.conf to point to your BIND installation (not sure as you did not post that bit of information )
__________________
Reply With Quote
  #5 (permalink)  
Old 04-02-2009, 06:20 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Your hosts file is also incorrect, it should be like this:

Code:
127.0.0.1 localhost.localdomain localhost
201.18.17.118 mail.hotelpart.com mail
and your MX record points to:

Code:
mail IN A 200.11.20.111
which is not the IP address of the server in your hosts file.

What is the IP address of the Zimbra server? Is the Zimbra server sitting behind a firewall or NAT router or is it on a Public IP?
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 04-02-2009, 07:01 AM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by phoenix View Post
Your hosts file is also incorrect, it should be like this:

Code:
127.0.0.1 localhost.localdomain localhost
200.11.20.111 mail.hotelpart.com mail
and your MX record points to:

Code:
mail IN A 200.11.20.111
which is not the IP address of the server in your hosts file.

What is the IP address of the Zimbra server? Is the Zimbra server sitting behind a firewall or NAT router or is it on a Public IP?
The IP adress of my server Zimbra is 200.11.20.111.
He is behind a router CISCO 1700.
This IP is a Public IP.
Reply With Quote
  #7 (permalink)  
Old 04-02-2009, 07:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Then you should modify the hosts file as I've shown you, does that solve the problem?
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 04-02-2009, 09:31 AM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by phoenix View Post
Then you should modify the hosts file as I've shown you, does that solve the problem?
I made the changes you asked me and there is still a problem.

mail:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
200.11.20.111 mail.hotelpart.com mail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

--------------------------------------------------------
File db.hotelpart.com

;
; BIND data file for local loopback interface
;
$TTL 86400
@ IN SOA mail.hotelpart.com. root.hotelpart.com. (
1 ; Serial
3600 ; Refresh
86400 ; Retry
2419200 ; Expire
3600
)
;
@ IN NS mail.hotelpart.com.
@ IN MX 5 mail.hotelpart.com
localhost IN A 127.0.0.1
www IN A 200.11.20.111
mail IN A 200.11.20.111


File db.111.20.11.200

;
; BIND data file for local loopback interface
;
$TTL 86400
@ IN SOA mail.hotelpart.com. root.hotelpart.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS mail.hotelpart.com.
@ IN MX mail.hotelpart.com.
@ IN A 111.20.11.200
@ IN PTR mail.hotelpart.com.

Do You have more any tips, for help me ?????

Thanks!!!
Reply With Quote
  #9 (permalink)  
Old 04-02-2009, 09:33 AM
Moderator
 
Posts: 7,928
Default

Run the commands again so we can check please
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig hotelpart.com mx
dig hotelpart.com any
host `hostname` <- note backticks and not single quotes
__________________
Reply With Quote
  #10 (permalink)  
Old 04-02-2009, 09:45 AM
Active Member
 
Posts: 34
Default

Quote:
Originally Posted by uxbod View Post
Run the commands again so we can check please
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig hotelpart.com mx
dig hotelpart.com any
host `hostname` <- note backticks and not single quotes
OK!!!


mail:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
201.18.17.118 mail.hotelpart.com mail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

------------------------------------------------------------

mail:~# cat /etc/resolv.conf
domain hotelpart.com
search hotelpart.com
nameserver 127.0.0.1
nameserver 10.0.0.1
nameserver 200.222.0.34
nameserver 200.222.0.35

------------------------------------------------------------

mail:~# dig hotelpart.com mx

; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 28808
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotelpart.com. IN MX

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Apr 2 10:49:29 2009
;; MSG SIZE rcvd: 34

--------------------------------------------------------------

mail:~# dig hotelpart.com any

; <<>> DiG 9.3.4-P1.1 <<>> hotelpart.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54761
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotelpart.com. IN ANY

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Apr 2 10:50:55 2009
;; MSG SIZE rcvd: 34

---------------------------------------------------------------

mail:~# host `hostname`
Host mail not found: 3(NXDOMAIN)


It's all here, as requested!!!!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.