Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing CNAME using WMI

Status
Not open for further replies.

Kharold

IS-IT--Management
Jun 24, 2008
2
US
All:

I am having a bit of a problem locating a decent example of how to implement MicrosoftDNS_ResourceRecord class / MicrosoftDNS_CNAMEType to edit a CNAME on my DNS server.

I essentially need a VB Script that will utilize WMI to edit a CNAME on my DNS servers named "ActiveDB" with a FQDN of "db1.example.com". I know how to use DNScmd to edit, but I would highly prefer to use WMI.

Can someone please provide an example of how to either:
a) Update the DNS CNAME record, or,
b) Delete the CNAME, then recreate it with the new FQDN?

Any assistance would be greatly appreciated.
Thanks,
Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top