Date: Tue, 5 Mar 2002 15:15:41 -0500 (EST) From: Marty Poulin <mpoulin@honk.org> To: freebsd-questions@freebsd.org Subject: caching nameserver not working? Message-ID: <Pine.LNX.3.96.1020305150833.28264A-100000@honk.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.1020305150833.28264A-100000>
