View Single Post
  #14 (permalink)  
Old 12-03-2008, 08:16 AM
Peperzaken Peperzaken is offline
Junior Member
 
Posts: 8
Default

First of all, sorry for the late reply.

Quote:
Originally Posted by phoenix View Post
Sorry, my mistake. Your hosts file should also have the localhost formatted like this:

Code:
127.0.0.1 localhost.localdomain localhost
Fixed.

Quote:
The dig command should be for the domain and not the FQDN of the server as per the following:

Code:
dig peperzaken.nl mx
dig peperzaken.nl mx:

Code:
root@zimbra:/etc/bind# dig peperzaken.nl mx

; <<>> DiG 9.3.2 <<>> peperzaken.nl mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 22904
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;peperzaken.nl.                 IN      MX

;; Query time: 1 msec
;; SERVER: 10.0.0.175#53(10.0.0.175)
;; WHEN: Wed Dec  3 16:59:03 2008
;; MSG SIZE  rcvd: 31
This is the output of the dig command with 10.0.0.1 (the IP of the router) as forwarder in the bind setup and 10.0.0.175 as the only nameserver defined in /etc/resolv.conf. With this configuration the output of the host command is the following:

Code:
root@zimbra:/etc/bind# host `hostname`
Host zimbra.peperzaken.nl not found: 2(SERVFAIL)
When I define the IP 10.0.0.1 as nameserver in /etc/resolv.conf the dig command gives the status "NOERROR" and the host command gives the external IP.

What can I do now to fix all this?
Reply With Quote