Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Remove name server from a delegated zone without removing the A record for the name server

$
0
0

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



Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>