The Modify method in WMI DNS can delete a DNS record if the new record is identical to the old record

Symptoms

Consider the following scenario. You use the Modify method in Windows Management Instrumentation (WMI) Domain Name System (DNS) to change an existing DNS record. The existing DNS record contains data that is identical to the new data that you want to use to change the record. This can occur if another user or operator changed the DNS record before you made your change.

In this scenario, the DNS record is deleted instead of being changed to the same data.

Cause

This issue occurs because the Modify method is implemented as follows:
  1. Add the new DNS record.
  2. If this is successful, delete the old DNS record.
When the new record is identical to the old record, the DNS record is deleted.

Workaround

To work around this issue, first use the record type's Delete method to remove the old record, and then use the record type's Add method to add the new record, instead of using the Modify method.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 979609 - Last Review: Oct 18, 2010 - Revision: 1

Feedback