VB/WMI to edit DNS CNAME
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.
|All times are GMT +5.5. The time now is 10:38.|