Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to add another domain to my server. I followed this :

Basically, I created a new file called

in the


What's the next step? I created a file in


As well, and included it in my "named.conf.local"

Restart Apache and Bind, but it does not work. when i nslookup I get this error:

;; Got SERVFAIL reply from, trying next server Server: Address:

If I change my hosts(Not the server (C:\WINDOWS\system32\drivers\etc\hosts)) and point the domain to my server IP, the server will work for me.

Anyone got any idea or want more information? << The CNAME and all that is missing.

** server can't find NXDOMAIN

; <<>> DiG 9.6-ESV-R4 <<>> @localhost ; (3 servers found) ;; global options: +cmd ;; connection timed out; no servers could be reached

; <<>> DiG 9.6-ESV-R4 <<>> @ ; (1 server found) ;; global options: +cmd ;; connection timed out; no servers could be reached

 netstat -nulp | grep :53
udp        0      0*                           7057/named
udp        0      0*                           7057/named
udp        0      0*                           7057/named
udp        0      0  *                           7057/named
udp6       0      0 :::53                   :::*                                7057/named
share|improve this question
up vote 0 down vote accepted

The SERVFAIL response probably means problems in your DNS configuration, but to be sure try this instead:

dig @yourserver

If it still returns a SERVFAIL you can be sure your config went wrong somewhere. In that case post the relevant block of your named.conf.local and the zone file for that domain. Also take a look at /var/log/daemon.log immediatly after restarting BIND - it should provide hints at what is wrong.

share|improve this answer
@Eduardo I. Ops, Added the code in first post. Any idea? Thanks for replying. – Muazam Apr 19 '11 at 21:35
I see dig is not able to reach the DNS server. What IP is it listening on? You can check this using netstat -nulp | grep :53. – Eduardo Ivanec Apr 19 '11 at 21:39
@Eduardo I. Added in first post, those three IPs? – Muazam Apr 19 '11 at 21:43
I see. Well, you seem not to be reaching BIND, even though you should. Do you have any iptables rules up? iptables -nvL INPUT | grep 53. If you restart BIND do you see anything related to this zone in the log files? – Eduardo Ivanec Apr 19 '11 at 21:48
It somehow started to work. Maybe I had to wait? I waited like two hours. Its good to know what I did wrong. I didn't edit anything and suddenly it started to work. Well, Thanks for your help, I really appreciate it, I really do. Thanks again! – Muazam Apr 19 '11 at 21:55

Got it all wrong in the first place...

the question led me into a wrong direction. Basically you have to make your PC ask the server for the route to the domain. This can be done by adding the domain to the hosts filo of each client that should resolve the domain or use a DNS. This can also be a router where you can add so called hosts. You can also publish an alternate nameserver in your Network via router or set a custom route in every client.

share|improve this answer
With this method, my visitors needs to change their host file? Sorry if I misunderstood. Thanks for replying. – Muazam Apr 19 '11 at 21:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.