I am having trouble managing a DNS zone delegation with PowerShell. I want to remove the nameserver from the zone, but I don't want to delete the A record for the name server. It seems like the PowerShell command 'remove-DnsServerZoneDelegation' does both. Is there a way to remove the nameserver from the zone without removing the A Record for the name server?
My syntax currently is remove-DnsServerZoneDelegation -Name "domain.local" -ChildZoneName "delegatedzone.domain.local." -NameServer "testnameserver1.domain.local." -ComputerName "DNSSERVER"
It successfully removes testnameserver1.domain.local. from the list of nameservers for delegatedzone, but it also deletes the A record for testnameserver1.domain.local. I don't want that to happen. We switch this zone around on a regular basis.
***Update - I noticed if I click yes to the first confirmation window, and no to the second confirmation window, it performs exactly the way I want it to. I don't know what parameters to supply to make that happen completely automated****
thanks,
bosco