Wrong IP Lookup

Nicolas Kreft kreft at do.isst.fhg.de
Fri Nov 26 08:21:58 UTC 2004


Hi Norman!


Norman Zhang schrieb:
> I have BIND setup to take DDNS from a multihomed box. DDNS are enabled 
> on both NICs. For example,
> 
> dc1.mydomain.com 192.168.11.21 192.168.22.21
> 
> However, the wrong IP may sometimes be resolved for the wrong subnet. Is 
> there a way I can restrict hosts in 192.168.22.0/24 subnet to resolve to 
> 192.168.22.21 only? And likewise for subnet 192.168.11.0/24?


Try the "sortlist" config statement.

Example:

  sortlist {
             { 192.168.1.0/24; };
             { 192.168.2.0/24; };
             { 192.168.3.0/24; };
         };


When you have multiple A records for a multihomed host,
Bind will return the one that "belongs" to the subnet
the query came from.


HTH
Nicolas



More information about the bind-users mailing list