I am using dns policy with windows dns server. In my scenario I want to allow recursive queries in local subnet (192.168.1.0/24) and deny for others.
It works great until querying for a domain (example.com) from local subnet. After resolving from local it starts to resolve for all ips. I think it looks first cache and answers immidiately without looking the policies.
How can I deny recursive queries in cache for outside ips?
Here is my policy details.
Add-DnsServerClientSubnet -Name ServersSubnet -IPv4Subnet 192.168.1.0/24
Add-DnsServerClientSubnet -Name LoopBackSubnet -IPv4Subnet 127.0.0.0/8 -IPv6Subnet ::1/128
Set-DnsServerRecursionScope -Name . -EnableRecursion $False
Add-DnsServerRecursionScope -Name "InternalClients" -EnableRecursion $True -Forwarder 208.26.222.222, 208.67.220.220
Add-DnsServerQueryResolutionPolicy -Name "SplitBrainRecursionPolicy" -Action ALLOW -ApplyOnRecursion -RecursionScope "InternalClients" -ClientSubnet "eq,ServersSubnet,LoopBackSubnet"