How to configure the DNS Server in Microsoft Azure to make sure that all VMs created in the Cloud will receive the proper DNS configuration. The scenario described in this Tutorial will help administrators that are planning the integration between Microsoft Azure and on-premises environments.
The first step is to get the information of the local domain controller, in our scenario we have a single DC located in Quebec and the server name is QCSRV01 and the IP address is 10.60.99.50, as shown in the figure below.
Logged on Microsoft Azure management portal, click on Networks and then DNS Servers tab.
In order to create a new one, let’s click on New, and by default the first three columns will be automatically selected (which means that Network Services, Virtual network, and Register DNS Server is already selected). The next step is to fill out the server name and the IP address, and we are going to use the information gathered in the previous step. To complete the process, click on Register DNS Server.
How to configure DNS Server in a Virtual Network…
Now that we registered a DNS Server in Microsoft Azure, we can open Virtual Networks, and then click on the existent Virtual Network being listed, and then click on Configure tab. In the new page a list of all DNS servers for that specific Virtual Network will be listed, we can add manually or select from the existent ones.
Defining the DNS Server during the Virtual Network creation…
During the creation of a new Virtual Network, we can define the DNS by adding manually or using an existent entry, as shown in the figure below.
DNS Server and new Virtual Machines…
During the creation of a new VM, the administrator can choose between Virtual Networks, Affinity Groups or Regions. When selecting the Virtual Network we will automatically define the DNS Server based on the settings defined in the Virtual Network level.
In this Tutorial we went over the process to define the DNS Server and how to use such configuration when creating a VM or defining a Virtual Network.