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 Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,528 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,666 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
0 comments No comments
{count} vote

Accepted answer
  1. Gary Reynolds 9,416 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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