Date: Sun, 16 Jun 2002 13:15:01 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: johann@broadpark.no Cc: questions@FreeBSD.ORG Subject: Re: Internal DNS Message-ID: <20020616121501.GA56299@happy-idiot-talk.infracaninophi> In-Reply-To: <1024226178.3d0c7382997fc@mail.broadpark.no> References: <1024226178.3d0c7382997fc@mail.broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 16, 2002 at 01:16:18PM +0200, johann@broadpark.no wrote: > options { > directory "/etc/namedb"; > }; > > # forwarders { # What is wrong with this forwarding? > # 217.13.4.21; # BIND claims it's wrong. > # 217.13.7.136; > # }; The forwarders clause needs to be inside the options: options { directory "/etc/namedb"; forwarders { 217.13.4.21; 217.13.7.136; }; }; > lan. IN SOA muay.lan. johann.ninja.lan. ( > 2002041601 ; Serial > 10800 ; Refresh > 3600 ; Retry > 604800 ; Expire > 86400 ) ; Minimum TTL > > @ IN NS muay.lan. > > muay.lan. IN A 192.168.0.1 > ninja.lan. IN A 192.168.0.2 `@' is shorthand for the $ORIGIN of the zone file. That's either the what's defined in the zone clause in named.conf or by explicitly setting $ORIGIN at the top of the file. It's also the default key for the SOA record. Try something like this for your zonefile: $TTL 86400 ; Default TTL entry for RRs @ IN SOA muay.lan. johan.ninja.lan. ( 2002061600 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ) ; Minimum TTL NS muay muay A 192.168.0.1 ninja A 192.168.0.2 When you attempt to restart named, check /var/log/messages for any errors. named will print out something like: Jun 14 20:03:33 happy-idiot-talk named[98]: Ready to answer queries. if it started up successfully. > Also, what happens to /etc/hosts now that BIND steps in its shoes? See /etc/host.conf: by default gethostbyname() and that ilk will search /etc/hosts first, then try the nameserver. Change the order of the entries in that file if you want to prefer DNS over /etc/hosts. Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020616121501.GA56299>