Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 1998 03:59:10 -0700 (PDT)
From:      "Brian O'Shea" <boshea@ricochet.net>
To:        freebsd-net@FreeBSD.ORG
Subject:   Strange problem with named as a caching-only name server
Message-ID:  <199807051059.DAA11210@atropos.ricochet.net>

next in thread | raw e-mail | index | archive | help
Hello and greetings.

I'm running FreeBSD 2.2.5 with BIND version 8.2 and I am having a little
difficulty setting up named as a caching-only name server.  I can't connect
to named on my machine when I specify my IP address in /etc/resolv.conf .
I don't seem to have this problem when I specify the loopback address in
it's place.  I would settle for the loopback address except that I have
read that this is a bad idea due to a bug in the BIND code (but I had to
try it anyway, just to see what would happen).

To illustrate, first I tried to connect to named running on my machine,
specifying the server on the command line as 10.0.0.2 (my machine's IP
address):


[atropos:/home/brian]% nslookup - 10.0.0.2
*** Can't find server name for address 10.0.0.2: Non-existent host/domain
*** Default servers are not available


Here's my /etc/resolv.conf, just for some background:

; resolv.conf
search		ricochet.net	; Search list
nameserver	10.0.0.2	; Local caching-only name server
nameserver	168.253.48.19	; Ricochet primary name server
nameserver	198.6.1.1	; Ricochet secondary name server


Next I ran nslookup in interactive mode without specifying my machine's
IP address as the server.  It defaulted to using my ISP's primary name
server (from resolv.conf).  Then I set the server to my machine manually.
For some reason this worked:


[atropos:/home/brian]% nslookup -
*** Can't find server name for address 10.0.0.2: Non-existent host/domain
Default Server:  norad-48.mcdn.net
Address:  168.253.48.19

> server 10.0.0.2
Default Server:  [10.0.0.2]
Address:  10.0.0.2

> rs.internic.net
Server:  [10.0.0.2]
Address:  10.0.0.2

Name:    rs.internic.net
Addresses:  198.41.0.12, 198.41.0.13, 198.41.0.6, 198.41.0.7
          198.41.0.8, 198.41.0.9

> 


Now with the loopback address in /etc/resolv.conf instead of my IP address:

; resolv.conf
search		ricochet.net	; Search list
nameserver	127.0.0.1	; Local caching-only name server (loopback)
;nameserver	10.0.0.2	; Local caching-only name server
nameserver	168.253.48.19	; Ricochet primary name server
nameserver	198.6.1.1	; Ricochet secondary name server


[atropos:/home/brian]% nslookup -          
Default Server:  localhost
Address:  127.0.0.1

> 

Any ideas on how I can get this running smoothly?

Thanks in advance,
-brian


p.s.  Some other information that might be of use:

I start named with the following command:
/usr/sbin/named -b /var/namedb/named.boot

/var/namedb/named.boot:
; named.boot - BIND boot file (caching-only for atropos.Ricochet.NET)
directory	/var/namedb
cache		.	named.root


-- 
Brian O'Shea
boshea@ricochet.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807051059.DAA11210>