delegating subname.localdomain to 127.0.0.2 on the client machine?

Barry Margolin barmar at alum.mit.edu
Thu Apr 22 00:46:12 UTC 2010


In article <mailman.1224.1271891255.21153.bind-users at lists.isc.org>,
 Mark Hedges <hedges at scriptdolphin.com> wrote:

> Hi...
> 
> Is it possible to configure .localdomain to delegate a
> subdomain to 127.0.0.2, so that the client then tries to do
> a lookup from that localhost address on itself?
> 
> The scenario is a farm of sendmail + RBL servers that have
> independent management and databases, but a single bind
> server.  Sendmail etc. would do a lookup of
> 78.56.34.12.rbl.localdomain and it would look at localhost
> on 127.0.0.2, where the local RBL service listens.

You need to run a caching nameserver on the sendmail machines, and point 
them to 127.0.0.1 in /etc/resolv.conf.  The stub resolver doesn't follow 
delegations, it sends recursive queries and expects the server to do all 
the work.

> 
> Is that possible?
> 
> For lookups that work when queried directly from the client
> local RBL on 127.0.0.2,
> 
> this causes the response "no answer:"
> 
>  view local_domains {
>      match-clients       { localhost; internal; };
>      match-destinations  { localhost; internal; };
>      recursion no;
>      include "/etc/named.rfc1912.zones";
>  };
> 
> and "recursion yes" causes the response "NXDOMAIN."
> 
> Those were better outcomes, it seemed, than "response timed
> out" when rfc1912.zones was lumped into views of the
> internal network and vpn domains, which have recursion for
> looking up external names.
> 
> Mark

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list