“Use DNS Policy for Geo-Location Based Traffic Management with Primary-Secondary Deployments” error

%3CLINGO-SUB%20id%3D%22lingo-sub-291431%22%20slang%3D%22en-US%22%3E%E2%80%9CUse%20DNS%20Policy%20for%20Geo-Location%20Based%20Traffic%20Management%20with%20Primary-Secondary%20Deployments%E2%80%9D%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-291431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%3E%3CFONT%3EError%20in%20document%20content%EF%BC%9Ahttps%EF%BC%9A%2F%2Fdocs.microsoft.com%2F%2Fwindows-server%2Fnetworking%2Fdns%2Fdeploy%2Fprimary-secondary-geo-location%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3EI%20follow%20the%20order%20of%20the%20article%2C%20and%20when%20you%20perform%20the%20final%20step%20of%20configuring%20the%20DNS%20policy%2C%20you%20find%20the%20following%20error%3A%3C%2FP%3E%3CP%20class%3D%22%22%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20Get-DnsServerQueryResolutionPolicy%20-ZoneName%20%22basehome.com.cn%22%20-ComputerName%20%22primary-dns%22%3C%2FP%3E%3CP%3EName%20ProcessingOrder%20IsEnabled%20Action%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EChengduPolicy%201%20True%20Allow%3CBR%20%2F%3EBeijingPolicy%202%20True%20Allow%3CBR%20%2F%3ERestOfWorldPolicy%203%20True%20Allow%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CFONT%3E%3CFONT%3EPS%20C%EF%BC%9A%5C%20Users%20%5C%20Administrator%26gt%3B%20Get-DnsServerQueryResolutionPolicy%20-ZoneName%E2%80%9Cbasehome.com.cn%E2%80%9D%20-%20ComputerName%E2%80%9CPrimary-DNS%E2%80%9D%7C%20%3C%2FFONT%3E%3CFONT%3EAdd-DnsServerQueryResolutionPolicy%20-ZoneName%E2%80%9Cbasehome.com.cn%E2%80%9D%20%3C%2FFONT%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3E%3CFONT%3EAdd-DnsServerQueryResolutionPolicy%EF%BC%9AParameter%20error%E3%80%82%3C%2FFONT%3E%3C%2FFONT%3E%3CBR%20%2F%3ELocation%20Line%3A%201%20characters%3A%2094%3C%2FP%3E%3CUL%3E%3CLI%3E%3CFONT%3E%3CFONT%3E...%20mary-DNS%E2%80%9C%7C%20Add-DnsServerQueryResolutionPolicy%20-ZoneName%E2%80%9Dbasehome.co%20...%3C%2FFONT%3E%3C%2FFONT%3E%3CUL%3E%3CLI%3E%3CFONT%3E%3CFONT%3ECategoryInfo%EF%BC%9AInvalidArgument%EF%BC%9A%EF%BC%88PS_DnsServerQueryResolutionPolicy%EF%BC%9Aroot%20%2F%20Microsoft%20%2F%20...%20%3C%2FFONT%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%3E%3CFONT%3EesolutionPolicy%20%3C%2FFONT%3E%3CFONT%3E%EF%BC%89%5B%20%3C%2FFONT%3E%3CFONT%3EAdd-DnsServerQueryResolutionPolicy%5D%EF%BC%8CCimException%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%3E%3CFONT%3EFullyQualifiedErrorId%EF%BC%9AWIN32%2087%EF%BC%8CAdd-DnsServerQueryResolutionPolicy%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-291431%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDNS%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Error in document content:https://docs.microsoft.com//windows-server/networking/dns/deploy/primary-secondary-geo-location

I follow the order of the article, and when you perform the final step of configuring the DNS policy, you find the following error:

PS C:\Users\Administrator> Get-DnsServerQueryResolutionPolicy -ZoneName "basehome.com.cn" -ComputerName "primary-dns"

Name ProcessingOrder IsEnabled Action


ChengduPolicy 1 True Allow
BeijingPolicy 2 True Allow
RestOfWorldPolicy 3 True Allow

 

PS C:\ Users \ Administrator> Get-DnsServerQueryResolutionPolicy -ZoneName“basehome.com.cn” - ComputerName“Primary-DNS”| Add-DnsServerQueryResolutionPolicy -ZoneName“basehome.com.cn”
Add-DnsServerQueryResolutionPolicy:Parameter error。
Location Line: 1 characters: 94

  • ... mary-DNS“| Add-DnsServerQueryResolutionPolicy -ZoneName”basehome.co ...
    • CategoryInfo:InvalidArgument:(PS_DnsServerQueryResolutionPolicy:root / Microsoft / ...
      esolutionPolicy )[ Add-DnsServerQueryResolutionPolicy],CimException
    • FullyQualifiedErrorId:WIN32 87,Add-DnsServerQueryResolutionPolicy
0 Replies