Add nameserver with glue record programmatically

Simons-1504 1 Reputation point
2021-03-15T15:53:43.927+00:00

Hi,

I currently have to update a number of primary zone by adding a new external nameserver. I was aiming to do it fully automatic but the glue record part is problematic.
When I use the GUI, I can add a new nameserver and set an IP address for it. It create a glue record and I'm able to use the zone transfer as expected.
But when using the powershell command : Add-DnsServerResourceRecord -ZoneName 'ZONE' -NS -nameserver 'NAMESERVER FQDN'
The record nameserver is created but in the GUI the IP appears as Unknown and the zone transfer don't work.
Is there a way to create properly a glue record ?

Thanks,

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Server User experience PowerShell
{count} votes

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.