Link to home
Start Free TrialLog in
Avatar of pseudocyber
pseudocyber

asked on

How to script & automate simple Windows DNS change?

I have to make a DNS change at a certain time - say 9:00 PM tonight ;).  It's simply changing a cname to point to a different FQDN.

So, lets say I want to change myweb.company.com  to go from webserver1.company.com to instead point to webserver2.company.com.

I know nothing about scripting, but shirley ( ;)) this is simple to do and automate?  How to do it please, in simple network engineer (not Windows engineer) terms ... ;)

DNS server is Windows 2003 server.  Normally I use MMC to do IP Address Management.  
ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry typo mistake:
Syntax:
DNSCmd.exe <DNSServerIP/Name> /RecordAdd <ZoneName> <CNameToAdd/Change> CNAME <FQDN>
Any update pseudocyber?
Avatar of pseudocyber
pseudocyber

ASKER

Thanks.