I need some help with bind 9 views. External view doesn't seem to work, but internal view works fine. I already match client to specific IP address for both views and only the zones defined in internal view works. I did try to 'nslookup' from the clients I defined in the match-clients directive. I have pasted the named.conf here
-----start paste ---
options {
directory "/var/named";
pid-file "/var/run/named.pid";
forwarders { 63.240.76.19; 204.127.198.19; };
# hide our "real" version number
version "[secured]";
};
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { dnsadmin; };
};
view "internal" {
match-clients { 192.168.1.7; };
recursion no;
# The root nameservers
zone "." {
type hint;
file "named.ca";
};
# localhost - forward zone
zone "localhost" {
type master;
file "localhost.zone";
notify no;
};
zone "bostonfx.com" {
type master;
file "bostonfx.zone";
};
zone "nixbum.com" {
type master;
file "nixbum.zone";
};
# localhost - inverse zone
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};
view "external" {
match-clients { 192.168.1.8; };
recursion no;
# The root nameservers
zone "." {
type hint;
file "named.ca";
};
zone "nixout.com" {
type master;
file "nixout.zone";
notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};
---- end paste ---
Many thanks in advance
-----start paste ---
options {
directory "/var/named";
pid-file "/var/run/named.pid";
forwarders { 63.240.76.19; 204.127.198.19; };
# hide our "real" version number
version "[secured]";
};
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { dnsadmin; };
};
view "internal" {
match-clients { 192.168.1.7; };
recursion no;
# The root nameservers
zone "." {
type hint;
file "named.ca";
};
# localhost - forward zone
zone "localhost" {
type master;
file "localhost.zone";
notify no;
};
zone "bostonfx.com" {
type master;
file "bostonfx.zone";
};
zone "nixbum.com" {
type master;
file "nixbum.zone";
};
# localhost - inverse zone
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};
view "external" {
match-clients { 192.168.1.8; };
recursion no;
# The root nameservers
zone "." {
type hint;
file "named.ca";
};
zone "nixout.com" {
type master;
file "nixout.zone";
notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};
---- end paste ---
Many thanks in advance