DNS Forwarders based on Source IP Addresses(Bind 9)
I am not familiar with Win2012R2 DNS Server but with Bind9 you can achieve what you want pretty easily with Bind9 acl
+ views
Define two acl
to match each site based on source address
acl siteA {
10.1.1.0/24;
fde1::/64;
};
acl siteB {
10.2.2.0/24;
fde2::/64;;
};
Then define two views
based on acl
and for each view
define forwarders
you want
view "siteA" {
match-clients {
siteA;
};
recursion no;
forwarders {
8.8.8.8
2001:4860:4860::8888
};
};
view "siteB" {
match-clients {
siteB;
};
recursion no;
forwarders {
8.8.4.4
2001:4860:4860::8844
};
};
This setup works perfectly, usually relevant for internal / external zones. For example allow recursion for internal clients and act as authoritative name server for external clients