dnscmd /recordDelete behavior


  • It seems that if I have two records managed by my MS DNS server, say: A (in the forward zone)
    and PTR (in the reverse zone)

    and I call:

     dnscmd /RecordDelete A /f

    I see that BOTH the A and PTR records get deleted. This is unexpected as I only want the A record removed. Is there any way to disable the deletion of the PTR in this case?

    I was hoping since I had specified the record type as A, it would leave the PTR alone...

    Monday, October 27, 2008 4:38 PM


All replies

  • Hi,

    A pointer (PTR) resource record is deleted automatically if the corresponding host (A) resource record is deleted. See here:
    Have a nice day! The Masterplan - MCSE,MCITP-EA
    • Marked as answer by amacfarl Tuesday, October 28, 2008 1:46 PM
    Tuesday, October 28, 2008 12:55 PM
  • Bah, I suspected as much, but was hoping for a command line option to disable it.

    You don't know by chance if this same behavior exists when a secure update delete for the A is sent do you (via DnsModifyRecordsInSet_A)? I suppose I should just go try it and see for myself.

    Thanks for the reply!

    Tuesday, October 28, 2008 1:46 PM
  • Hi,

    Please try to delete without IP address to remove only A record.

    dnscmd /RecordDelete A /f

    Thursday, June 14, 2018 1:35 PM