Hi dos2unix,
Linux dns 3.16.0-10-686-pae #1 SMP Debian 3.16.76-1 (2019-11-12) i686 GNU/Linux.
Using bind 9
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
view "internal-only-sites"{
match-clients {
192.168.1.0/24;
192.168.15.0/24;
};
zone "exampleweb.com" {
type master;
file "/etc/bind/zones/db.exampleweb.com.internal";
notify yes;
allow-transfer {
192.168.1.202;
192.168.1.203;
192.168.15.203;
};
};
};
view "external-forced-sites" {
match-clients {
192.168.3.0/24;
192.168.5.0/24;
192.168.7.0/24;
192.168.8.0/24;
172.16.4.0/24;
172.16.9.0/24;
};
zone "exampleweb.com" {
type master;
file "/etc/bind/zones/db.exampleweb.com.external";
notify yes;
allow-transfer {
192.168.3.202;
192.168.5.202;
192.168.7.202;
192.168.8.202;
172.16.9.202;
172.16.4.202;
};
};
};
view "all-sites" {
match-clients { any; };
// prime the server with knowledge of the root servers
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
server 192.168.15.203 {
};
server 192.168.1.202 {
};
};
"named.conf.local" [readonly] 66L, 1333C