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.  
LVL 27
pseudocyberAsked:
Who is Participating?
 
Farhan KaziSystems EngineerCommented:
Greetings pseudocyber,

You can do this by using 'Dnscmd' command line utility comes with Windows 2000 support tools.
Syntax:
DNSCmd.exe <DNSServerIP/Name> /RecordAdd <ZoneName> <CNameToDelete> CNAME <FQDN>

Make a 2 batch files with following code schedule them with with Scheduled Tasks.

Batch-1:
DNSCmd.exe 172.16.96.11 /RecordAdd Training.com myweb.company.com CNAME webserver2.company.com

Batch-2:
DNSCmd.exe 172.16.96.11 /RecordAdd Training.com myweb.company.com CNAME webserver1.company.com

For more info visit:
http://technet2.microsoft.com/windowsserver/en/library/29578757-6a77-4b96-9996-20405689a0791033.mspx?mfr=true

To download Windows 2000 support tools visit:
http://www.petri.co.il/dnscmd_command_in_windows_2000_2003.htm

Hope this helps
0
 
Farhan KaziSystems EngineerCommented:
Sorry typo mistake:
Syntax:
DNSCmd.exe <DNSServerIP/Name> /RecordAdd <ZoneName> <CNameToAdd/Change> CNAME <FQDN>
0
 
Farhan KaziSystems EngineerCommented:
Any update pseudocyber?
0
 
pseudocyberAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.