Changing DNS settings on Microsoft Azure

Share this:

A common task when building a new site or changing the Domain Controllers in Microsoft Azure is to change the DNS Server configuration at the Virtual Network level. Microsoft recommends to restart the VM after changing the DNS settings, however there is a workaround that may be useful on your environment to save the restart time.


Let’s use a simple example, our environment is configured to use the DNS server for the RG-VN-DefaultNW Virtual Network, as depicted in the image below.


If we change the DNS to use the default one (Azure provided) we will see a warning saying that the VMs that are using this Virtual Network must be restarted to use the new DNS settings.




There is a simple shortcut that works, connected to the VM, run this following command as administrator on the command prompt:

ipconfig /release && ipconfig /renew


The same procedure can be applied to AWS instances as well, when changing the DHCP scope of a VPC (Virtual Private Cloud).

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Related Post

How to create a Virtual Network using Azure Resour... Configuring a Virtual Network and a VPN connection between Microsoft Azure and a local site using Azure Resource Manager deployment model. Solution ...
Software-Defined Networking with Windows Server an... Free online event with live QA with the WAP team: Two half-days – Wednesday July 16th & Thursday July 17th – 9am-1pm PST ...
Microsoft Cloud – A couple of pages to help ... Cloud is the hot-topic in our industry nowadays and Microsoft has been delivering great products for this demand: the Window Server itself (the Cloud ...
Azure enhancement Site-to-Site VPN functionality After Scott Guthrie announce the new enhancements on Azure, last May, I was very excited with one in particular. Multi Site-to-Site VPN. This enhancem...