From owner-freebsd-questions@FreeBSD.ORG Tue Jul 25 06:46:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62F4B16A4DE for ; Tue, 25 Jul 2006 06:46:42 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from overlord.navalradio.cl (overlord.navalradio.cl [201.236.67.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id D00A843D45 for ; Tue, 25 Jul 2006 06:46:41 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from [10.0.0.7] (ppp111-84.lns1.hba1.internode.on.net [150.101.111.84]) (authenticated bits=0) by overlord.navalradio.cl (8.13.6/8.13.6) with ESMTP id k6P6kLgH021569; Tue, 25 Jul 2006 02:46:24 -0400 (CLT) (envelope-from mikhailg@webanoide.org) Message-ID: <44C5BE33.9030002@webanoide.org> Date: Tue, 25 Jul 2006 16:46:11 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) MIME-Version: 1.0 To: David Stanford References: <44C47C7E.5030609@webanoide.org> <44C4FCC0.40000@fechner.net> <44C59EB9.70707@webanoide.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-98.5 required=5.0 tests=AWL,RCVD_IN_SORBS_DUL, USER_IN_WHITELIST autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on overlord.navalradio.cl Cc: freebsd-questions@freebsd.org Subject: Re: Simple DNS Configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 06:46:42 -0000 David Stanford wrote: > On 7/25/06, Mikhail Goriachev wrote: >> 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 > > > Isn't named's default behaviour to run chrooted? It appears so whn looking > at the rc script. Yep, it is. I got burnt a few times using stop and start in the past. That is why I only use '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. > > > I've been ignoring that to save time while troubleshooting as (from my > understanding) it is only used by other name servers so they know to > update their information: > > "The serial number identifies this version of the zone configuration. Remote > name servers > first retreive the SOA record and check if the serial number has incremented > before > deciding whether to access the rest of the zone, which could be large. Make > sure you > increment this field every time you edit the file. If you don't, your > updates will not > propagate to other name servers." -The Complete FreeBSD, Greg Lehey Good point. I also got burnt with this one a few times in the past... now incrementing is my habit. I guess its use depends on the weather. >> 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. > > > Good point. > >> ; 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. > > > Yea, I feel I may just use the A records as the additional query issue you > mentioned previously leaves me thinking it's the better configuration...it > still bothers me I can't figure it out though. :-/ Not sure what you mean. >> [root@chadwick ~]# /etc/rc.d/named start >>> Starting named. >> >> Check your logs. > > > I've been checking /var/log/messages but see nothing after recieving that > error. Are all named logs placed here by default? This is the only place where I look. As far as I'm concerned, if a reload was unsuccessful, then you'll get something in there. Otherwise nothing gets logged. >> [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. > > > Yes, as I noted, when I remove the CNAME entry everything works fine. Very > strange... Not sure about that either. I guess you shouldn't use it then. Anyway, at least your domain is responding now: $ host -t a daemonbox.net chadwick.daemonbox.net Using domain server: Name: chadwick.daemonbox.net Address: 66.246.140.170#53 Aliases: daemonbox.net has address 66.246.140.170 $ host -t a www.daemonbox.net chadwick.daemonbox.net Using domain server: Name: chadwick.daemonbox.net Address: 66.246.140.170#53 Aliases: www.daemonbox.net has address 66.246.140.170 http://www.dnsreport.com/tools/dnsreport.ch?domain=daemonbox.net www.dnsreport.com is a great tool for all your DNS needs. 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