Share via

Problems with DNS policy

Nick Tuktarov 25 Reputation points
2023-09-15T14:37:24.6766667+00:00

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?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments

Answer accepted by question author

Gary Reynolds 9,626 Reputation points
2023-09-16T01:20:30.5+00:00

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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.