We've removed several DC's recently, and we do occasionally replace DC's with new servers. This can cause an issue as we have a lot of different sites around the world, and we have a lot of forward and reverse lookup zones.
I've used the following command to remove the NS record for the old DCs in forward lookup zones:
dnscmd /recorddelete xxxx.com @ NS servername.xxxx.com
where xxxx.com is our domain name and one of the forward zones.
I've also then thought I could export all zones into a CSV then create a batch file to run, but the same command above doesn't seem to work if I replace the forward zone with a reverse zone like 0.10.in-addr-arpa
here's the export connand:
dnscms XXXX.com /enumzones > C:\zones.csv
ANy ideas how I can use dnscmd to remove a specific NS record from all forward or reverse zones? or if not, how can I use dnscmd to remove a specific NS record from a reverse zone?