Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 12:52:51 +0400
From:      Jeff Laine <wtf.jlaine@gmail.com>
To:        Kirk Strauser <kirk@strauser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Named ignoring forward-only zones?
Message-ID:  <20090605085251.GA37781@free.bsd.loc>
In-Reply-To: <200906041153.38898.kirk@strauser.com>
References:  <200906041153.38898.kirk@strauser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 04, 2009 at 11:53:38AM -0500, Kirk Strauser wrote:
> For some reason, BIND 9 (FreeBSD 7.2-RELEASE) isn't properly forwarding 
> queries.  A snippet of named.conf:
> 
> acl clients {
>         localnets;
>         localhost;
>         ::1;      
>         10.45.12/19;
> };                         
> 
> view "internal" {
>         match-clients { clients; };
>         zone "5.0.10.in-addr.arpa" {
>                 type forward;
>                 forward only;
>                 forwarders { 10.0.5.16; };
>         };
> };
> 
> 
> Now, I can query the forwarder directly to get the right answer:
> 
> $ dig +noall +answer -t ptr -x 10.0.5.16 @10.0.5.16
> 16.5.0.10.in-addr.arpa. 86400   IN      PTR     kanga.honeypot.net.
> 
> But I can't get the same from named:
> 
> $ dig -t ptr -x 10.0.5.16
> 
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 56485
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;16.5.0.10.in-addr.arpa.                IN      PTR
> 
> ;; AUTHORITY SECTION:
> 10.in-addr.arpa.        10800   IN      SOA     10.in-addr.arpa. 
> nobody.localhost. 42 86400 43200 604800 10800
> 
> So, why isn't named directing that query to the configured forwarder?  I'm 
> 99.9% certain this has been working recently.


Hi, Kirk.

I had the similar issue with forward type zones yesterday. 
Though I'm not quite sure, but it started to work after I put 127.0.0.1 
to /etc/resolv.conf on our bind server.


My named.conf entries look like this:

...
zone "need2.frwd.zone" {
        type forward;
        forward only;
        forwarders { 10.xx.xx.xx; 10.xx.xx.yy; };
};

zone "10.in-addr.arpa" {
        type forward;
        forward only;
        forwarders { 10.xx.xx.xx; 10.xx.xx.yy; };
};
...



-- 
Best regards,
Jeff

| "Nobody wants to say how this works.	|
|  Maybe nobody knows ..."		|
|  			Xorg.conf(5)	|



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