Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using BIND on Ubuntu 11.04 and nothing seems to be working (the server is doing recursion, so I know it is working properly.) However it is not resolving local hosts on my subnet that I've provided. No error is provided when I run named-checkconf.

Here is setup:

/etc/bind/named.conf

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

/etc/bind/named.conf.options

options {
    directory "/var/cache/bind";
    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };
};

/etc/bind/named.conf.local

zone "example.com" {
    type master;
    file "/etc/bind/example.com.zone";
};

/etc/bind/example.com.zone

$TTL 1d

@   IN  NS  192.168.1.102
www     IN  A   192.168.1.102
web IN  CNAME   www
comp1   IN  A   192.168.1.122
comp2   IN  A   192.168.1.124
comp3   IN  A   192.168.1.123

When I attempt to ping any of the specified hosts (comp1-3 or access my webserver www.example.com) nothing is happening.

Is there certain permissions that must be set on the zone file?

I attempt to dig example.com and this is what is returned:

; <<>> DiG 9.7.3 <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 32743
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.           IN  A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jun 18 04:36:25 2011
;; MSG SIZE  rcvd: 29

Any suggestions on how to fix this?

share|improve this question
    
You have signalled BIND to reload it's configuration? Maybe I'm out-of-date on BIND but shouldn't there be a serial-number that gets updated? –  RedGrittyBrick Jun 18 '11 at 13:48
2  
Try including an SOA section and see if it works. Also, don't forget your reverse DNS. –  ultrasawblade Jun 18 '11 at 14:15
    
What do you mean by "nothing is happening?" I'm sure something is happening... if it sits there for a long time before giving a "host not found" error, that is something. If it shows you the IP it's pinging, then sits there a long time before saying "Host unreachable", that is something... if it gives you an immediate error, that is something... let us know exactly what is happening, and it will be easier to troubleshoot. –  Flimzy Jun 19 '11 at 7:08

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.