Clients sometimes get wrong view

Corey Shaw cshaw at q90.com
Tue Jun 9 17:56:19 UTC 2009


OS: Gentoo 
Bind Version: 9.6.0-p1 


I currently have my Bind server set up with 3 views. It seems that every now and then I have clients in the "office" view that try to go to www.mydomain.com (which should be a public address), but instead they get the internal address that is defined in the "datacenter" view (10.x.x.x). As a result, they can't get to www.mydomain.com. My views are configured as shown below (yes, all the include files exist and load properly). They are ordered in my configuration as shown below as well. Any ideas on why this may be happening? 



view "datacenter" { 
match-clients { 10.x.x.0/24; }; 
recursion yes; 
include "/etc/bind/includes/ datacenter includes.conf"; 
allow-recursion { 1 0.x.x.0 /24; }; 


zone "." IN { 
type hint; 
file "named.ca"; 
}; 
zone "localhost" IN { 
type master; 
file "pri/localhost.zone"; 
allow-update { none; }; 
notify no; 
}; 
zone "127.in-addr.arpa" IN { 
type master; 
file "pri/127.zone"; 
allow-update { none; }; 
notify no; 
}; 
}; 
view "office" { 
match-clients { 166.x.x.88/29; }; 
recursion yes; 
include "/etc/bind/includes/officeincludes.conf"; 
allow-recursion { 166.x.x.88/29; }; 


zone "." IN { 
type hint; 
file "named.ca"; 
}; 
zone "localhost" IN { 
type master; 
file "pri/localhost.zone"; 
allow-update { none; }; 
notify no; 
}; 
zone "127.in-addr.arpa" IN { 
type master; 
file "pri/127.zone"; 
allow-update { none; }; 
notify no; 
}; 
}; 
view "public" { 
match-clients { any; }; 
recursion no; 
include "/etc/bind/includes/publicincludes.conf"; 
allow-recursion { none; }; 


zone "." IN { 
type hint; 
file "named.ca"; 
}; 
zone "localhost" IN { 
type master; 
file "pri/localhost.zone"; 
allow-update { none; }; 
notify no; 
}; 
zone "127.in-addr.arpa" IN { 
type master; 
file "pri/127.zone"; 
allow-update { none; }; 
notify no; 
}; 
}; 





_____________________ 
Corey Shaw 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20090609/6c7d1405/attachment.html>


More information about the bind-users mailing list