Share via


Cannot create a record in a scope using PowerShell

Question

Tuesday, October 9, 2018 11:50 AM

Get-DnsServerZoneScope -ZoneName "domain.tld"ZoneScope            FileName            domain.tld           domain.tld.dnsguests               guests.dns
Get-DnsServerResourceRecord -ZoneName "domain.tld" -ZoneScope "guests"empty output
Add-DnsServerResourceRecordA -Name "test" -ZoneName "domain.tld" -ZoneScope "guests" -IPv4Address "1.2.3.4"
Add-DnsServerResourceRecordA : Failed to create resource record test in scope guests of zone domain.tld on server AD1.
At line:1 char:1
+ Add-DnsServerResourceRecordA -Name "test" -ZoneName "domain.tld" -ZoneScop ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (aaa:root/Microsoft/...ResourceRecordA) [Add-DnsServerResourceRecordA], CimException
    + FullyQualifiedErrorId : WIN32 9703,Add-DnsServerResourceRecordA

All replies (4)

Wednesday, October 10, 2018 3:34 AM

Hi,

Thanks for your question.

I did the same test in my environment and everything worked fine.
I suspect that there is a problem with the zonescope "guests". I recommend you to recreate the zonescope.

Please refer to the link below:

/en-us/windows-server/networking/dns/deploy/dns-policies-overview  

Best regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]


Wednesday, October 10, 2018 5:45 PM

I recommend you to recreate the zonescope.

I can't. Cmdlet fails with unknown error.

Can secondary zone have a scope?

I vaguely remember this is my case. Zone domain.tld had been primary with guests scope for some time, then I deleted the zone and recreated it as secondary zone. Scope probably didn't get deleted and now it's stucked in nowhere. It does not show any records but they're resolved as they had been configured.


Thursday, October 11, 2018 9:41 AM

Hi,

Based on my knowledge, you can't do any operation to secondary zone.

Because the content of secondary zone is transferred from primary zone.

Best regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]


Friday, October 26, 2018 10:01 AM

Hi,

Just checking in to see if the information provided was helpful.

Please let us know if you would like further assistance.

Best Regards,

Travis

Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]