How to modify the DNS Server settings in Microsoft Azure

Share this:

If you are planning to deploy Domain Controllers in Microsoft Azure, the first step will be the DNS Server configuration pointing out to the local Domain Controllers and after building the first Domain Controller in the Cloud, then you probably want to change the DNS Settings of your local network to point out to the Domain Controllers that are close to the VMs in Azure.


Let’s start with an ipconfig of a server located in the Microsoft Azure, and that server was the first Domain Controller that we prometed on the Azure side.  At this point, the primary is an IP address located on-premises (


Changing the DNS Server configuration…

Logged on the Azure Portal, click on Networks, and then on DNS Servers.


Click on New, Network Services, Virtual Network, Register DNS Server and add the name and the IP address of the Domain Controller in Microsoft Azure side. Click on Register DNS Server to add the new information.


Wait for the message saying that the entry was added successfully.


Now we can see that we have two DNS Server entries available for the networks, however, that does not mean that the current servers will receive that new information.


Updating the existent Virtual Network…

In order to specify the DNS Server of any given Virtual Network, we need to click on Configure inside of the Virtual Network properties, and then remove the current primary one and select the new entry (the Azure DNS), and then add a secondary and tertiary DNS Server settings. The order is important because the order being displayed there will be the one used by the VMs.  To confirm the changes hit save.


Now, we just need to schedule a restart of the VM and after the restart we can run the ipconfig again and we will see the changes in production, as shown in the figure below.



In this Tutorial we went over the process to add a new DNS Server and how to configure the new entry at the Virtual Network level.

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 remove a domain from Office365 In this Tutorial we are going over the process to a remove a production domain from Office365 using the web interface however the same results can be ...
Adding a domain in Azure Active Directory Adding and validating a domain in Microsoft Azure using the new portal based on Azure Resource Manager (ARM). The new portal has been out there for a ...
Using Diagram feature in Azure Portal How to use the diagram feature in the Microsoft Azure Portal (Azure Resource Manager). Solution It reminds me of System Center Operations Manager, ...
Resetting DNS changes at adapter level in Microsof... Microsoft Azure IaaS (Infrastructure as a Service) is picky when it comes to change DNS and network adapter settings at the VM level. Solution If f...