Hello, i've been fighting with this for the last few days. A few of my entries have external and internal IP's. My internal network is 192.168.1.0/24.
When I nslookup pc1.example.org internally it responds with a 192.168.1.0 address but if I nslookup pc1.example.org externally it still gives me a 192.168.1.0 address.
I'm on Debian Wheezy.
It worked correctly with out using the slave (clients directly connecting to the master) and the external client getting external ips
But changing clients resolv.conf to the slave dns gives me the 192.168.1.0 for the external client again
Help will be much appreciated
master named.conf
Code:
include "/etc/bind/named.conf.options";
acl internals { 192.168.1.0/24; localhost; };
acl externals { !localnets; any; };
view "internal" {
match-clients { internals; };
zone "example.org"{
type master;
file "/etc/bind/internals/db.forward.net";
allow-transfer { 192.168.1.2/24; };
};
slave DNS named.conf
Code:
include "/etc/bind/named.conf.options";
acl internals { 192.168.1.0/24; localhost; };
acl externals { !localnets; any; };
view "internal" {
match-clients { internals; };
zone "example.org"{
type slave;
file "/etc/bind/internals/db.forward.net";
masters {192.168.1.1/24; };
};