Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] BIND9 zone files



Hi there,

I'm busy pulling my hair out over a problem I'm encountering while playing
around with BIND9 trying to set up a zone for my local network.

The first thing I'm wondering is whether BIND actually works for 'A' and
'NS' records which point to private IP addresses (192.168/16 in my case). I
didn't see anything in "DNS and BIND" (O'Reilly) or in the BIND9
administration reference available at http://www.isc.org stating the
contrary, so I'm assuming I'm OK on that score.

My /etc/named.conf has this section in it:

zone "bonivet.net" IN {
        type master;
        file "db.bonivet.net";
        allow-update { none; };
};

Since the "options" section of the same file has `directory "/var/named";'
in it, I saved my "db.bonivet.net" zone data file in that directory. Here it
is:

$TTL 3h

bonivet.net.            IN   SOA     spider.bonivet.net. gstewart.gstewart.homeunix.net. (
        2002120901 ;       Serial number
        3h         ;       Refresh after 3 hours
        1h         ;       Retry after 1 hour
        1d         ;       Expire after 1 day
        3h )       ;       Negative caching TTL of 3 hours

bonivet.net.            IN   NS      spider.bonivet.net.

localhost.bonivet.net.  IN   A       127.0.0.1
chris.bonivet.net.      IN   A       192.168.0.1
godwin.bonivet.net.     IN   A       192.168.0.2
fly.bonivet.net.        IN   A       192.168.0.3
spider.bonivet.net.     IN   A       192.168.1.1

www.bonivet.net.        IN   CNAME   spider.bonivet.net.
bonivet.net.            IN   CNAME   spider.bonivet.net.
smtp.bonivet.net.       IN   CNAME   spider.bonivet.net.
pop3.bonivet.net.       IN   CNAME   spider.bonivet.net.
p2-266.bonivet.net.     IN   CNAME   chris.bonivet.net.
c433.bonivet.net.       IN   CNAME   godwin.bonivet.net.

; ------------ Data ends here --------------

named is doing *something* with this zone data file because when it starts
up, this gets dumped into my log files:

named[24611]: dns_master_load: db.bonivet.net:19: bonivet.net: CNAME and other data
named[24611]: zone bonivet.net/IN: loading master file db.bonivet.net: CNAME and other data

However, when I send a query to the nameserver, it doesn't even find the
SOA, let alone the A record:

godwin@example.com ~$ dig spider.bonivet.net in a

; <<>> DiG 9.2.1 <<>> spider.bonivet.net in a
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31513
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;spider.bonivet.net.            IN      A

;; Query time: 8 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Dec  9 14:59:25 2002
;; MSG SIZE  rcvd: 36


Any ideas ?

TIA.

-- 
G. Stewart   --   gstewart@example.com
                  gstewart@example.com
Registered Linux user #284683

GnuPG key  : BA3D01C6 (pgp.mit.edu)
Fingerprint: C3DF C686 6572 6E59 E3E4  0F40 2B9A 2218 BA3D 01C6
---------------------------------------------------------------
The journey of a thousand miles begins with a broken
fan belt and a leaky tyre.

Attachment: pgp00013.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links