3 msgSet maximumopen files to -1: permission denied
2 msgFixing the order in which multiple records of t...
4 msgseeking comments on setting up local copy of ro...
4 msgBind Front End Util
2 msgnamed (bind 9.3.2) continually spawning
2 msgDDNS
6 msgbind machine performance for around 500 domains
3 msgBeehive CoNoNS DNS Survey
2 msgTimeout on DNS Request with Bind
3 msgHow do You Specify Which Zone to Update in Views?
1 msgReturning one address from a RRset
2 msgbind resolver, a/aaaa queries and searchlist be...
5 msgLimit data transfer zone
4 msgSplit authority for class-B?
1 msgv9.3.2/freebsd: compile error
4 msgLogging channel: FILE NOT FOUND

Disable recursion externally, allow internally
\ milney_boy (27 Apr 2006)
. \ Robert Zilbauer (27 Apr 2006)
. \ Kevin Darcy (27 Apr 2006)
. \ Barry Margolin (27 Apr 2006)

4 msgDebugging IXFR's; getting a partial IXFR
4 msgnamed fails answering
2 msgName resolution problem for bio.wss.bcentral.com
Subject:Disable recursion externally, allow internally
Group:Bind-users
From:milney_boy
Date:27 Apr 2006


 
Hello,

I'm trying to set up a BIND (version 9.2 i think) server to host DNS
for my domains. I have set up a RHEL server with a public IP address
and am now confguring BIND.

As background info, my resolv.conf file has one "nameserver
xxx.xxx.xxx.xxx" line, where xxx.xxx.xxx.xxx is the public IP address
that I have given the server (I am not using NAT for this).

I want to set up BIND to allow recursive queries when I do internal
nslookups, but to not when a query comes from anywhere else.

I have tried views, to split the named.conf and specify an "internal"
view where:

match-clients { localhost; };
recursion yes;

and an "external" view where:

match-clients { any; };
recursion no;

This appears to work as a query from another server appears to not
return a recursive result, whereas a local nslookup does resolve.
However, as I have listed my domains in the "external" view so that
they will be resolved correctly on the internet, it appears that they
no longer resolve from an internal query.

I don't want to have to list all my domains twice; once in the
internal, once in the external though. I also think it is causing
problems with nsupdate as i get a message ";;connection timed out. no
servers could be reached" when trying to update one of the domains
listed in the "external" view (i have specified allow-update{ any; };).

I have tried to use "allow-recursion { localhost; };" as this should
solve my problem in theory, but in practice it does not work as it
still allows external recursive queries.

If anyone can offer me any suggestions as to how to set up this
external/internal recursion, I would be very grateful. Apologies if i
seem naive, but I am relatively new to BIND.

Thanks,

Andrew




© 2004-2008 readlist.com