Date: 17 Oct 2002 17:09:37 +0100 From: Stacey Roberts <stacey@Demon.vickiandstacey.com> To: Nick Rogness <nick@rogness.net> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Reconfigured named, but now getting errors Message-ID: <1034870979.44771.8.camel@Demon.vickiandstacey.com> In-Reply-To: <20021017000256.T15782-100000@skywalker.rogness.net> References: <20021017000256.T15782-100000@skywalker.rogness.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-1BA3Rj/hvxD0CNGJebI8 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Nick, I swear.., this thing was working after I had a fiddle this morning after sending my last e-mail off to you. Now I can't run nslookup on my domain: # nslookup www.vickiandstacey.com Server: localhost.vickiandstacey.com Address: 127.0.0.1 *** localhost.vickiandstacey.com can't find www.vickiandstacey.com: Non-existent host/domain #=20 Although I *am* able to resolve remote address okay: # nslookup www.freebsd.org Server: localhost.vickiandstacey.com Address: 127.0.0.1 Non-authoritative answer: Name: www.freebsd.org Address: 216.136.204.117 #=20 Don't know why this suddenly stopped working, but take a look at what I've got here:- named.conf: // If you enable a local name server, don't forget to enter 127.0.0.1 // into your /etc/resolv.conf so this server will be queried first. // Also, make sure to enable it in /etc/rc.conf. zone "." { type hint; file "named.root"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "master/localhost.rev"; }; zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" { type master; file "master/localhost-v6.rev"; }; And my Zone statements: zone "vickiandstacey.com" in { type master; file "master/vickiandstacey.com.db"; allow-query{ 127/8; 192.168.1/24; }; }; zone "1.168.192.in-addr.arpa" in { type master; file "master/192.168.1.db"; allow-query{ 127/8; 192.168.1/24; }; }; This is what I thought was the solution for the zone files: $TTL 3600 vickiandstacey.com. IN SOA Demon.vickiandstacey.com. =20 postmaster.vickiandstacey.com. ( 2002101605 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ) ; Minimum TTL @ IN NS Demon.vickiandstacey.com. localhost IN A 127.0.0.1 Demon IN A 192.168.1.8 snowball IN A 192.168.1.6 And for the reverse resolution: $TTL 3600 1.168.192.in-addr.arpa. IN SOA Demon.vickiandstacey.com. =20 postmaster.vickiandstacey.com. ( 2002101605 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ) ; Minimum TTL @ IN NS Demon.vickiandstacey.com. 8 IN PTR Demon.vickiandstacey.com. 6 IN PTR snowball.vickiandstacey.com. And /etc/resolv.conf: # cat /etc/resolv.conf domain vickiandstacey.com search vickiandstacey.com nameserver 127.0.0.1 nameserver 158.43.240.4 nameserver 158.43.240.3 #=20 I'm *definitely* at a loss here. Why would it work, and then stop???? Thanks for the suggestions., do come back to me with any ideas that you might have. Stacey On Thu, 2002-10-17 at 07:10, Nick Rogness wrote: > On 16 Oct 2002, Stacey Roberts wrote: >=20 > > Hi Nick, > > I wonder if you could take a look at my bind config files, with a > > view to helping me resolve the errors I get after I restarted named > > here. >=20 > Sure. >=20 >=20 > > > > I editted named.conf and included zone information for my private net: > > > > zone "vickiandstacey.com" in { > ^^ >=20 > Don't believe you need the in here. >=20 >=20 > > type master; > > file "master/vickiandstacey.com.db"; > > allow-query{ 127/8; 192.168.1/24; }; > > }; > > > > zone "1.168.192.in-addr.arpa" in { > > type master; > > file "master/192.168.1.db"; > > allow-query{ 127/8; 192.168.1/24; }; > > }; > > > > And created respective zone and reverse addressing files: > > > > # more vickiandstacey.com.db > > $TTL 864000 > > $ORIGIN vickiandstacey.com. > > vickiandstacey.com IN SOA Demon.vickiandstacey.com. > ^^ >=20 > Missing a . at the end of vickiandstacey.com. You could just use: >=20 > @ IN SOA demon.vickiandstacey.com. etc etc >=20 > The "@" is a shortcut for the current ORIGIN. >=20 >=20 > > postmaster.vickiandstacey.com. ( > > 5 ; Serial > > 10800 ; Refresh > > 3600 ; Retry > > 604800 ; Expire > > 86400 ) ; Minimum TTL > > > > IN NS Demon.vickiandstacey.com. > > > > $ORIGIN vickiandstacey.com. > > Demon IN A 192.168.1.8 > > snowball IN A 192.168.1.6 > > # > > > > # more 192.168.1.db > > $TTL 864000 > > $ORIGIN 168.192.in-addr.arpa. > > 1 IN SOA Demon.vickiandstacey.com. > ^^^^ >=20 > This is incorrect. I would just put an @ here. >=20 > > postmaster.vickiandstacey.com. ( > > 5 ; Serial > > 10800 ; Refresh > > 3600 ; Retry > > 604800 ; Expire > > 86400 ) ; Minimum TTL > > > > IN NS Demon.vickiandstacey.com. > > > > $ORIGIN 1.168.192.in-addr.arpa. > > 8 IN PTR Demon.vickiandstacey.com. > > 6 IN PTR snowball.vickiandstacey.com. > > # > > > > Thinking that this was sufficient for my requirements, I then proceeded > > to restart named (which appeared to go without errors to screen), but > > got the following in /var/log/messages: > > > > Oct 16 21:29:06 Demon named[133]: reloading nameserver > > Oct 16 21:29:06 Demon named[133]: db_load could not open: localhost.rev= : > > No such file or directory >=20 > This says the nameserver couldn't find the file localhost.rev >=20 > > Oct 16 21:29:06 Demon named[133]: db_load could not open: > > localhost-v6.rev: No such file or directory >=20 > This says the nameserver couldn't find the file localhost-v6.rev >=20 >=20 >=20 > > Oct 16 21:29:06 Demon named[133]: master/vickiandstacey.com.db:3: SOA > > for "vickiandstacey.com.vickiandstacey.com" not at zone top > > "vickiandstacey.com" >=20 > This is because of the missing "." in the SOA line. See above. >=20 > > Oct 16 21:29:06 Demon named[133]: Zone "vickiandstacey.com" (file > > master/vickiandstacey.com.db): no NS RRs found at zone top >=20 > See above. >=20 > > Oct 16 21:29:06 Demon named[133]: master zone "vickiandstacey.com" (IN) > > rejected due to errors (serial 5) >=20 > See above. >=20 > Everything else looks functional, so fix those missing . and you > should be golden. >=20 >=20 > Nick Rogness <nick@rogness.net> > - > "Wouldn't it be great if we could answer people with a > kick to the crotch?" -maddox@xmission.com >=20 >=20 --=20 Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com --=-1BA3Rj/hvxD0CNGJebI8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQEVAwUAPa7gv5vQeubckvvXAQEx5Qf/Wvs7D4ti7YxEFIv0HHxZIi5kTFUp3rXL g4vxSnPs2LaC6ADr9uEWrTcY9YnTX9ffKrwDAHhXgKsRJds4NFl/CTdEHYU3uuJ5 DOj3Z+QQa1nmekFdAtW1FgqX2Z0V/YBZUJHwzkXUdTsGmRIoj0Z4RAHg6uecPVt5 HPuNUnS30TKUb+6vdW+Z/M1neIXhe/nBwlvrjKqsqNxqX3CKgRDAIdQDfyKaS2hS 3ap2SkpR+IdrGXzcs/cbBYeg1/hmqPY8r7+v7aap2LbMwezajZpcfc9Yzp2bbamO pgCFIxEBC05WbX2MnSqT9yEPvDifzCq3M6gDRhSl/OcUcXK5Wuds2g== =sVY9 -----END PGP SIGNATURE----- --=-1BA3Rj/hvxD0CNGJebI8-- 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?1034870979.44771.8.camel>