Proposed dnscmd /recorddelete

  • Thursday, January 28, 2010 11:17 AM
     
     
    Hi

    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?

    Cheers

    Rowbi

    Rowbi

All Replies

  • Monday, February 27, 2012 8:38 PM
     
     Proposed

    Use a . instead of @

    dnscmd /recorddelete asia.domain.com . NS dc05.domain.com


    David Jenkins

  • Friday, October 05, 2012 4:02 PM
     
     

    What ended up happening? The format using @ has been working fine for me.