Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

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

↑ Back to the top


Keywords: kbprb, kbpubtypekc, kbsurveynew, kbexpertiseadvanced, kbdns, kbtshoot, kbnofix, kbbug, kb

↑ Back to the top

Article Info
Article ID : 979609
Revision : 2
Created on : 11/1/2018
Published on : 11/1/2018
Exists online : False
Views : 123