If you have other records in the same domain zone and you only want a single record to use the policy, you will need to create a record based policy not a zone policy. Try using the -fqdn option rather than the -zonescope option on Add-DnsServerQueryResolutionPolicy.
Problems with DNS policy
Hi, community.
I made a DNS policy for subnet, zone scope and added record type A.
My A record, made above, resolving on client from subnet, it's OK. But while policy enabled, that client can't resolving other records in domain. Appears error: *** UnKnown can't find name.my_domain.com: Non-existent domain
Did like these:
Add-DnsServerClientSubnet -Name "Subnet_name" -IPv4Subnet "10.10.10.200/30"
Add-DnsServerZoneScope -ZoneName “my_domain.com” -Name “ZoneScope_name”
Add-DnsServerResourceRecord -ZoneName “my_domain.com” -A -Name “A_record_name” -IPv4Address "10.10.10.201" -ZoneScope “ZoneScope_name”
Add-DnsServerQueryResolutionPolicy -Name “Policy_name” -Action ALLOW -ClientSubnet “eq,Subnet_name” -ZoneScope “ZoneScope_name,1” -ZoneName “my_domain.com” –PassThru
What i did wrong?