Forwarding to two servers

CLOSE Dave (DAE) Dave.Close at us.thalesgroup.com
Tue Aug 10 00:39:07 UTC 2010


Based on suggestions here, I now have a named.conf file like this:

   options { ... };
   logging { ... };
   zone "." IN { type forward; forwarders { PUB; }; forward only; };
   zone "HOST1" { type forward; forwarders { PRIV; }; };
   zone "HOST2" { type forward; forwarders { PRIV; }; };
   # PUB and PRIV are actually IP addresses, both on the LAN (not WAN)

I think this means that simple queries for HOST1 or HOST2 (without a 
domain) will be forwarded to PRIV while all other queries will be 
forwarded to PUB. Queries forwarded to PUB will be tried with and 
without the domain search arguments from resolv.conf. Queries to PRIV 
either won't try the search domains or, since they will fail, will 
eventually try without them. If so, that is exactly what I want.

And it seems to work correctly on Fedora 13 with BIND 9.7. Does anyone 
see a hidden gotcha that will bite me later (other than the need to 
maintain the list of HOST*)?
-- 
Dave Close




More information about the bind-users mailing list