Date: Tue, 25 Jul 2006 14:31:53 +1000 From: Mikhail Goriachev <mikhailg@webanoide.org> To: David Stanford <dthomas53@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Simple DNS Configuration Message-ID: <44C59EB9.70707@webanoide.org> In-Reply-To: <f2c91f770607241453w5c361dd7h1cbfc715f031a2b6@mail.gmail.com> References: <f2c91f770607240000w44693d61jde950fbe618f4574@mail.gmail.com> <44C47C7E.5030609@webanoide.org> <f2c91f770607240151j3b2cecei452e187ef79454e1@mail.gmail.com> <44C4FCC0.40000@fechner.net> <f2c91f770607241453w5c361dd7h1cbfc715f031a2b6@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Stanford wrote: >> I've tried everyone's suggestions to no avail. Here's my actual > configuration: > > [root@chadwick ~]# /etc/rc.d/named stop > Stopping named. > [root@chadwick ~]# tail -12 /etc/namedb/named.conf I can't stop mine and then start it again (running in chrooted mode). I do: # make rndc reload Also, when something goes wrong, named won't reload but logs a complaint into /var/log/messages. So it is a good idea to check logs every time a change is made. > > zone "daemonbox.net" { > type master; > file "master/daemonbox.net"; > }; > > /* > zone "140.246.66.in-addr.arpa" { > type master; > file "master/140.246.66.in-addr.arpa"; > }; > */ > [root@chadwick ~]# cat /etc/namedb/master/daemonbox.net > $TTL 3600 ; 1 hour > daemonbox.net. IN SOA chadwick.daemonbox.net. > dstanford.daemonbox.net. ( > 2006072400 ; Serial ^^^^^^^^^^ ^^^^^^^^^^ Make sure your serial increments with every change you make. > 1d ; Refresh > 2h ; Retry > 100d ; Expire > 1h ) ; Minimum TTL > > > ; DNS Servers > @ IN NS chadwick.daemonbox.net. > @ IN NS ns1.nac.net. > @ IN NS ns2.nac.net. Remove/comment those nac.net servers just in case (just for now while testing). Get yours cranking first. > ; MX Records > IN MX 10 mail.daemonbox.net. > > ; Machine Names > localhost IN A 127.0.0.1 > chadwick IN A 66.246.140.170 > mail IN A 66.246.246.58 > www IN A 66.246.140.170 > @ IN A 66.246.140.170 > > ; Aliases > www IN CNAME @ I personally wouldn't use that line. Previous 2 lines are sufficient. > [root@chadwick ~]# /etc/rc.d/named start > Starting named. Check your logs. > [root@chadwick ~]# host -t a daemonbox.net localhost > Using domain server: > Name: localhost > Address: 127.0.0.1#53 > Aliases: > > Host daemonbox.net not found: 2(SERVFAIL) > > > Does anyone see anything wrong with this? Thanks for all your help! Can you resolve other domains (e.g.: freebsd.org)? Can't think of anything else right now. Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C59EB9.70707>