bind9 view statements
view statements could relpy different result depend on client origin
Example: private view and public view
query from public network ref. file db.test
query from private network ref. file db.test.private
view "public" {
match-clients { !192.168.0.0/16; any; };
recursion no;
zone "." {
type hint;
file "named.root";
};
zone "test.com" {
type master;
file "db.qmio";
};
};
view "private" {
match-clients { 192.168.0.0/16; };
zone "." {
type hint;
file "named.root";
};
zone "test.com" {
type master;
file "db.test.private";
};
};
Note: to use view statements, all zones must be in views
Posted by pank at January 5, 2005 10:41 PM