Skip site navigation (1)Skip section navigation (2)
Date:      04 Jul 2001 17:33:58 +0100
From:      Wayne Pascoe <wayne.pascoe@realtime.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Bind question - LONG
Message-ID:  <863d8cy7pl.fsf@pan.ehsrealtime.com>

next in thread | raw e-mail | index | archive | help
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




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