Process and restart your Windows DNS servers with a batch file.

If you are like me and have multiple Windows DNS servers to manage, you find that it gets tiresome to constantly update, clear the cache and restart the DNS Server service.  Scripting to the Rescue!

Here is a batch file I use to automate the process, it includes a method of writing a log file witch you can turn off or locate anywhere and allows for any number of server to be defined, thanks to a method of using the “FOR” command that reads and array of any length.  Special thanks to all of those DOS Gurus that take the time to post their code and share their experiences!