Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   VB/WMI to edit DNS CNAME (http://www.go4expert.com/forums/vb-wmi-edit-dns-cname-t12101/)

kharold 15Jul2008 00:17

VB/WMI to edit DNS CNAME
 
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


All times are GMT +5.5. The time now is 17:58.