From owner-freebsd-questions Tue Mar 5 12:15:52 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 AD8FF37B400 for ; Tue, 5 Mar 2002 12:15:42 -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 PAA28281 for ; Tue, 5 Mar 2002 15:15:47 -0500 Date: Tue, 5 Mar 2002 15:15:41 -0500 (EST) From: Marty Poulin To: freebsd-questions@freebsd.org Subject: caching nameserver not working? 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 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