From owner-freebsd-questions Wed Mar 6 13:31:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from honk.org (CPE0000c087525c.cpe.net.cable.rogers.com [24.156.93.166]) by hub.freebsd.org (Postfix) with ESMTP id B926837B405 for ; Wed, 6 Mar 2002 13:31:31 -0800 (PST) Received: from honk.org (mpoulin@CPE0000c087525c.cpe.net.cable.rogers.com [24.156.93.166]) by honk.org (8.9.1/8.9.1) with SMTP id QAA01195; Wed, 6 Mar 2002 16:31:38 -0500 Date: Wed, 6 Mar 2002 16:31:37 -0500 (EST) From: Marty Poulin To: freebsd-questions@freebsd.org Subject: Re: caching nameserver not working? (solved) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for everyone's help - I finally found the problem. I am running named as user/group "bind", and in the named.conf file I have the following set: pid-file "/var/named/named.pid"; The /var/named directory exists and is writable by user bind However, in my /etc/rc.conf file, I had the following line: named_flags="-p /var/run/named.pid -u bind -g bind" which of course is a problem since it conflicts (and was likely overriding) the "correct" setting in named.conf Interesting, though, the effect it had on named. The nameserver would resolve all of the domains that it hosted, it just wouldn't resolve any external domains. Another side effect of this problem was that slave transfers weren't working - I would change a zone on the master server, and the zone would never update on the slave. Nonetheless, by doing: ndc stop ndc start -u bind -g bind and removing the "-p /var/run/named.pid" from /etc/rc.conf (so it won't happen again next reboot) the problem is solved. Thanks again, - M - On Tue, 5 Mar 2002, Mike Bertsch wrote: > Hmm. Is your firewall set to allow DNS traffic in/outbound appropriately? > What's your logfile have to say, anything? > > -Mike > > On Tue, 5 Mar 2002, Marty Poulin wrote: > > > > > Thanks, but that was a typo on my part. The config file points to > > named.cache, and the filename is named.cache > > > > > > - M - > > > > On Tue, 5 Mar 2002, Mike Bertsch wrote: > > > > > Howdy, > > > > > > Not sure if this'll help, but it appears that your named.conf is looking > > > for named.cache, but you mentioned you're trying to use named.root. > > > Perhaps changing the config file to look for /etc/namedb/named.root will > > > help? > > > > > > -Mike > > > > > > On Tue, 5 Mar 2002, Marty Poulin wrote: > > > > > > > > > > > > > > > Here's a copy of my named.conf file: > > > > > > > > acl slaves { > > > > 123.123.123.124; > > > > }; > > > > options { > > > > directory "/etc/namedb"; > > > > pid-file "/var/named/named.pid"; > > > > allow-transfer { slaves; }; > > > > }; > > > > > > > > # type domain source host/file backup file > > > > > > > > zone "." { > > > > type hint; > > > > file "/etc/namedb/named.cache"; > > > > }; > > > > > > > > zone "mydomain.com" { > > > > type master; > > > > file "db.mydomain.com"; > > > > notify yes; > > > > also-notify { 123.123.123.124; }; > > > > }; > > > > > > > > > > > > The named.root file is the one included with FreeBSD; I have tried > > > > downloading a new copy with "dig @a.root-servers.net . ns > named.root" > > > > with no luck. > > > > > > > > I must be missing something - can anyone give me a hand? > > > > > > > > (please copy me by email - I'm not subscribed to the list) > > > > > > > > Thanks, > > > > > > > > M. > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message