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 DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,023 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,381 questions
{count} votes