From owner-freebsd-questions Tue Mar 5 13:16:39 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 56C2E37B400 for ; Tue, 5 Mar 2002 13:16:28 -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 QAA28561; Tue, 5 Mar 2002 16:16:33 -0500 Date: Tue, 5 Mar 2002 16:16:32 -0500 (EST) From: Marty Poulin To: Stephen Hoover Cc: freebsd-questions@freebsd.org Subject: RE: caching nameserver not working? 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 the suggestion, but I tried that and it still doesn't work. - M - On Tue, 5 Mar 2002, Stephen Hoover wrote: > In your options section, you need to list the DNS servers to forward > requests to for caching. > > Here is from my named.conf > > options { > directory "/var/named"; > forwarders { 216.140.16.254; 216.140.17.254; }; > }; > > > Hope this helps. > Stephen Hoover > Dallas, Texas > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Marty Poulin > Sent: Tuesday, March 05, 2002 2:16 PM > To: freebsd-questions@freebsd.org > Subject: caching nameserver not working? > > > > I'm completely stumped by this one. > > I have a FreeBSD server (4.4-STABLE) running Bind 8.2.4. > It is configured as a master server for my domain, and also configured as > a caching nameserver. > > For some reason, nslookups and dig queries work for my domain, but they > time out when querying any other domain. > > Examples: > > ============================================================== > > # nslookup mydomain.com 127.0.0.1 > Server: localhost > Address: 127.0.0.1 > > Name: mydomain.com > Address: 123.123.123.123 > > ============================================================== > > # dig @localhost mydomain.com > > ; <<>> DiG 8.3 <<>> @localhost mydomain.com > ; (1 server found) > ;; res options: init recurs defnam dnsrch > ;; got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 > ;; QUERY SECTION: > ;; mydomain.com, type = A, class = IN > > ;; ANSWER SECTION: > mydomain.com. 1H IN A 123.123.123.123 > > ;; AUTHORITY SECTION: > mydomain.com. 1H IN NS dns.mydomain.com. > mydomain.com. 1H IN NS dns2.mydomain.com. > mydomain.com. 1H IN NS sec1.dns.PSI.CA. > > ;; ADDITIONAL SECTION: > dns.mydomain.com. 1H IN A 123.123.123.124 > dns2.mydomain.com. 1H IN A 123.123.123.125 > > ;; Total query time: 1 msec > ;; FROM: dns.mydomain.com to SERVER: localhost 127.0.0.1 > ;; WHEN: Tue Mar 5 14:56:08 2002 > ;; MSG SIZE sent: 30 rcvd: 144 > > ============================================================== > > # nslookup freebsd.org 127.0.0.1 > Server: localhost > Address: 127.0.0.1 > > *** localhost can't find freebsd.org: Non-existent host/domain > > > ============================================================== > > # dig @localhost freebsd.org > > ; <<>> DiG 8.3 <<>> @localhost freebsd.org > ; (1 server found) > ;; res options: init recurs defnam dnsrch > ;; res_nsend to server localhost 127.0.0.1: Operation timed out > > ============================================================== > > 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