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

Managing the Password Synchronization in DirSync In this Tutorial we will check how to manage the Password Synchronization feature in the Windows Azure Active Directory Synchronization Tool. Solution...
Changing DNS settings on Microsoft Azure 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 ...
How to assign a public name to your Microsoft Azur... How to assign a public name to your website hosted at Microsoft Azure. Solution In order to assign a public name to a Microsoft Azure website,...
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, ...