From owner-freebsd-questions Wed Jul 4 9:34:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.realtime.co.uk (simian.realtime.co.uk [194.205.134.131]) by hub.freebsd.org (Postfix) with ESMTP id 589BE37B401 for ; Wed, 4 Jul 2001 09:34:34 -0700 (PDT) (envelope-from waynep@pan.realtime.co.uk) Received: from [213.52.146.196] (helo=pan.realtime.co.uk) by clientmail.realtime.co.uk with esmtp (Exim 3.20 #1) id 15Hpbk-0001tj-01 for freebsd-questions@freebsd.org; Wed, 04 Jul 2001 17:34:32 +0100 Received: from waynep by pan.realtime.co.uk with local (Exim 3.22 #1) id 15HpbC-0000hG-00 for freebsd-questions@freebsd.org; Wed, 04 Jul 2001 17:33:58 +0100 From: Wayne Pascoe To: freebsd-questions@freebsd.org Subject: Bind question - LONG Reply-To: wayne.pascoe@realtime.co.uk Date: 04 Jul 2001 17:33:58 +0100 Message-ID: <863d8cy7pl.fsf@pan.ehsrealtime.com> Lines: 104 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) 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 Hi there, I seem to hit this problem every time I install bind. I have a couple of workarounds, but I don't like ANY of them. This should probably be a FAQ by now. Once I sort this out, I'll write one and submit it for addition into the handbook. The only thing I have changed in this example is my machines IP range and my domain. All other data is accurate :) Here is what happens: I do an nslookup from the machine as follows: nslookup - 192.168.1.170 and I get the following output: *** Can't find server name for address 192.168.1.170: Timed out *** Default servers are not available Now for my config : I have a server with 2 IP addresses. The nameserver IP address is an alias on the box (eg 192.168.1.170) I have the following as my named.conf options { directory "/var/named"; dump-file "named_dump.db"; // _PATH_DUMPFILE pid-file "/var/run/named.pid"; // _PATH_PIDFILE statistics-file "/var/log/named.stats"; // _PATH_STATS memstatistics-file "/var/log/named.memstats"; // _PATH_MEMSTATS datasize 20M; query-source address 192.168.1.170 port 53; forwarders { my.isps.name.server; }; listen-on { 192.168.1.170; }; allow-transfer { 192.168.1.171; }; allow-query { 0/0; }; notify yes; allow-recursion { none; }; }; zone "." { type hint; file "named.root"; }; zone "localhost" { type master; file "named.local"; }; zone "0.0.127.in-addr.arpa" { type master; file "127.0.0"; }; include "/etc/master.zones"; include "/etc/slave.zones"; /etc/master.zones is as follows: zone "1.168.192.in-addr.arpa" in { type master; file "master/1.168.192.in-addr.arpa"; }; My 1.168.192.in-addr.arpa file is as follows: $TTL 1d @ SOA ns0.mydomain.com. hostmaster.mydomain.com. ( 2001070301 10800 3600 604800 86400 ) NS ns0.mydomain.com. 129 PTR mail.mydomain.com. 170 PTR ns0.ehsrealtime.com. Why do I get this error? there are no messages complaining about the 1.168.192.in-addr.arpa zone when I start named. If I comment out the master zone and restart bind, I get the following error: named[26072]: denied recursion for query from [192.168.1.10].2320 for 170.1.168.192.in-addr.arpa named[26072]: denied recursion for query from [213.52.146.196].2321 for 170.168.192.in-addr.arpa If I comment out the allow-recursion (which I'd rather not do) then it works, but why would it not work with the master zone included ? What is wrong with my zone file, or my install that it isn't being read? Thanks in advance to any guru's who can shed light on this. -- - Wayne Pascoe E-mail: wayne.pascoe@realtime.co.uk Phone : +44 (0) 20 7544 4668 Mobile: +44 (0) 788 431 1675 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message