Buy Me a Coffee

Buy Me a Coffee!

Tuesday, May 6, 2014

Fix for wandering DNS servers in Azure

One of the pain points for me when provisioning and re-provisioning servers is that the adapter tends to wander on server reboots which makes it interesting to build an Active Directory network and have the Domain Controller handle DNS.  Each new adapter needs to have it's DNS server set to the Domain Controller, so here is a script snippit to add to startup:

    netsh interface ip set dns name="Ethernet" static 10.0.0.4

Enjoy!!