Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 16:16:32 -0500 (EST)
From:      Marty Poulin <mpoulin@honk.org>
To:        Stephen Hoover <shooverfbn@442spot.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: caching nameserver not working?
Message-ID:  <Pine.LNX.3.96.1020305161235.28510B-100000@honk.org>
In-Reply-To: <MOEJLOFPGBFEEOIFFMLKCEOPCBAA.shooverfbn@442spot.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.1020305161235.28510B-100000>