What does Windows error code 9987 (DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED) mean?

 
Previous Next
DNS_ERROR_POLICY_SCOPE_MISSING DNS_ERROR_SERVERSCOPE_IS_REFERENCED

DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED

DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED means a policy includes scope information even though the selected action does not use a scope. This is a configuration mismatch rather than a missing DNS record.

Review the chosen policy action and remove scope parameters that do not apply to it. If scoped responses are actually required, select the policy action that supports them instead of forcing scope data into an incompatible configuration.

What to verify

  • Review the policy action first; different actions accept different policy components.
  • Remove only the incompatible scope argument, not unrelated policy criteria.
  • Compare the command with the official cmdlet syntax for the exact policy type being created.
Get-DnsServerQueryResolutionPolicy
Get-DnsServerQueryResolutionPolicy -ZoneName "example.com"
Get-DnsServerClientSubnet

Microsoft: Add-DnsServerQueryResolutionPolicy

Microsoft: DNS Policies overview

Microsoft: Get-DnsServerQueryResolutionPolicy


Looking for a different code? Search another status or error code.