I have fairly simple BIND setup on CentOS 5.5 (in a chrooted env) that handles DNS for two domains. I just added a third domain, but it's not working. It has to be something simple.

Here's an excerpt of my named.conf:

acl "trusted" {;

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named.stats";
        zone-statistics yes;
        notify no;
        transfer-format many-answers;
        max-transfer-time-in 60;
        interface-interval 0;
        version "Not Available";

        forwarders {;;

        allow-query {

zone "." {
        type hint;
        file "named.root";

zone "localdomain." IN {
        type master;
        file "localdomain.zone";

zone "localhost" {
        type master;
        file "localhost.zone";

zone "example.corp" {
        type master;
        file "example.corp.zone";

zone "tudy.it" {
        type master;
        notify no;
        file "tudy.it.zone";

And here's my tudy.it zone file:

$TTL    3600
$ORIGIN tudy.it.
@       3600    SOA     dns1.example.corp. sean.example.corp. (
                        2011030306      ; serial YYYYMMDDnn
                        24h             ; Refresh (24 hours)
                        2h              ; Retry (2 hours)
                        1000h           ; Expire (1000 hours)
                        2d )            ; Minimum (2 days)

       IN      NS      dns1.example.corp.

@               IN      A
s               IN      A

When I query the DNS server, I don't get an answer back:

$ dig @ s.tudy.it ANY

; <<>> DiG 9.7.1-P2 <<>> @ s.tudy.it ANY
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64075
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;s.tudy.it.                     IN      ANY

;; Query time: 0 msec
;; WHEN: Thu Mar  3 15:16:32 2011
;; MSG SIZE  rcvd: 27

I'm sure I'm missing something obvious. Any suggestions?

  • 1
    This would certainly fall under the realm of "something obvious," but have you reloaded the config since adding the zone file and changing named.conf? – Shane Madden Mar 3 '11 at 21:23
  • Check your logs for something like "not loaded due to errors". They usually accompany SERVFAIL. – Cakemox Mar 3 '11 at 21:35

Have you looked in /var/log/messages for any warnings/errors from named ? You can start named in the foreground and increase the debug level with

/usr/sbin/named -f -d 3 -t /path/to/chroot

and it will output messages to stdout.

  • I had run named-checkconf successfully before reloading and everything appeared fine. Lo and behold, hidden quietly in /var/log/messages: "one tudy.it/IN: loading master file tudy.it.zone: permission denied". I had created the zone file by hand and the group ownership was wrong. – organicveggie Mar 3 '11 at 22:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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