From owner-freebsd-net Sun Jul 5 03:54:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA23037 for freebsd-net-outgoing; Sun, 5 Jul 1998 03:54:43 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from rgate2.ricochet.net (rgate2.ricochet.net [204.179.143.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA23020 for ; Sun, 5 Jul 1998 03:54:23 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from atropos.ricochet.net (mg130-187.ricochet.net [204.179.130.187]) by rgate2.ricochet.net (8.8.8/8.8.8) with ESMTP id FAA05509 for ; Sun, 5 Jul 1998 05:55:12 -0500 (CDT) Received: (from brian@localhost) by atropos.ricochet.net (8.8.7/8.8.7) id DAA11210; Sun, 5 Jul 1998 03:59:20 -0700 (PDT) (envelope-from brian) From: "Brian O'Shea" Message-Id: <199807051059.DAA11210@atropos.ricochet.net> Subject: Strange problem with named as a caching-only name server To: freebsd-net@FreeBSD.ORG Date: Sun, 5 Jul 1998 03:59:10 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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