none
dnscmd /recordDelete behavior

    Question

  • It seems that if I have two records managed by my MS DNS server, say:

    host.test.com. A 1.1.1.1 (in the forward zone)
    and
    1.1.1.1.in-addr.arpa. PTR host.test.com. (in the reverse zone)

    and I call:

     dnscmd /RecordDelete test.com host.test.com. A 1.1.1.1 /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...

    Thanks.
    Monday, October 27, 2008 4:38 PM

Answers

All replies

  • Hi,

    A pointer (PTR) resource record is deleted automatically if the corresponding host (A) resource record is deleted. See here: http://technet.microsoft.com/en-us/library/cc901585.aspx
    Have a nice day! The Masterplan - MCSE,MCITP-EA http://winmasterplan.blogspot.com
    • 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 test.com host.test.com. A /f

    Thursday, June 14, 2018 1:35 PM