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

If anyone can help me troubleshoot this, I would very much appreciate it!!

The tests work. It's just that when I do the manual ping/nslookup test, nothing is working. By the way, I followed everything in this tutorial.

This is my /etc/bind/zones/master/ file:

; BIND data file for
$TTL    604800
@       IN      SOA (
                            2007011501         ; Serial
                                  7200         ; Refresh
                                   120         ; Retry
                               2419200         ; Expire
                                604800)        ; Default TTL
@       IN      NS
@       IN      NS    IN      MX      10    IN      A
www                     IN      CNAME
mail                    IN      A
ftp                     IN      CNAME            IN      TXT     "v=spf1 ip4: a mx ~all"
mail                    IN      TXT     "v=spf1 a -all"

This is my reverse DNS (/etc/bind/zones/master/174.143.182.rev) file:

$TTL 1d ;
$ORIGIN 182.143.174.IN-ADDR.ARPA.
@       IN      SOA (
        IN      NS
        IN      NS
1       IN      PTR
2       IN      PTR

This is my named.conf.local file for BIND:

zone "" {
       type master;
       file "/etc/bind/zones/master/";

zone "182.143.174.IN-ADDR.ARPA" {
       type master;
       file "/etc/bind/zones/master/";

When I do my named-checkzones, it works.

zone NS '' has no address records (A or AAAA)
zone NS '' has no address records (A or AAAA)
zone loaded serial 2007011501

However, something is wrong when I restart BIND9.

/etc/init.d/bind9 restart
Stopping domain name service...: bind9rndc: connect failed: connection refused
Starting domain name service...: bind9.

When I do a ping test, it does not work:

PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=52 time=20.0 ms

I expect the ping test to show my IP ( instead of

I even tried to edit my resolve.conf to the same IP:


If anyone can help figure out why it's not detecting my own IP when I ping it...please help me!

share|improve this question
Describing what's actually going wrong would be a mighty fine start. Use the standard template: What you expect to see versus what you actually see. – womble Nov 6 '09 at 11:04
I expect the ping test to show my IP ( instead of – Alex Nov 6 '09 at 11:17
I think the example in the tutorial you followed is broken but works for them because they have an A record for that happens to be the IP for the name server. – Sim Nov 6 '09 at 11:56
up vote 5 down vote accepted

You haven't got A records for your nameservers and The named-checkzones hasn't worked as it is warning you that you haven't got A records for your nameservers:

zone NS '' has no address records (A or AAAA)

zone NS '' has no address records (A or AAAA)

So you need to add the following to your file:

ns1           IN    A
ns2           IN    A

Without these glue records the whole thing won't work.

Also your SOA record for is wrong. It should be:

@       IN      SOA

It didn't fail in the named-checkzones because you have a A record and BIND assumed that was the name server record.

share|improve this answer
Hi Sim. Thanks for the answer. I made the changes, and the name-checkzones did not give the "no address records" warning anymore. However, when I do a still does not go to my IP? Is it because when I started the BIND9, it had a warning: Stopping domain name service...: bind9rndc: connect failed: connection refused? – Alex Nov 6 '09 at 21:39
Instead of restarting bind have you tried to stop and then start it? Don't use ping to troubleshoot DNS, nslookup or better still dig are your friends e.g. dig @localhost You need to establish if it is your DNS server you are talking to first. Did you remember to increment the SOA number after the changes? – Sim Nov 7 '09 at 2:47
Hang on a second. What are the IPs for your DNS server(s) are they and or should it be and ? At the moment the authoritative name servers for your domain are and - is that right? – Sim Nov 7 '09 at 2:50
If you are doing this just to learn then as Zoredache points out in his comment you should be using or or as that is what they are explicitly designed for. See – Sim Nov 7 '09 at 2:54

"I expect the ping test to show my IP ("

Why do you expect that? There are no records in those files which would cause that to happen.

Are you really the DNS administrator for That site appears to be up and working despite this. If not, why are you using

share|improve this answer
perhaps he was using it as an example, and he didn't know '' is the reserved name for this purpose. – Zoredache Nov 6 '09 at 17:32

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.