AzureTip #05 – Setting Custom DNS

Let’s imagine you create a Virtual Machine in Azure, then you install and configure your Active Directory inside this VM called “DC1”. Now, you create another Virtual Machine called “Win16-1” and you just want to join this VM to your AD Domain. To perform this task, you must configure the DNS on the network adapter of the “Win16-1” VM to indicate your DNS Server. However in Azure, you should not modify the network settings directly in the network adapter.

How to configure the DNS settings?

In this case, DC1 and Win16-1 are in the same Azure Virtual Network. The first step is to retrieve the private IP address of DC1. In my case, the IP Addr is 10.0.0.7. Now, you must configure a custom DNS in your Virtual Network.

Go to the Azure Portal, open the Virtual Network in which your Virtual Machines are located, in my case the VNet is called “Nico-RG01-vnet“. Select “Custom” DNS server instead of “Default“:

Add the IP Address of DC1 which is my Domain controller with the DNS role and Save the new settings.

Restart the VM called “Win16-1” in order to update DNS information and try to ping your DC:

Then try to join your AD Domain

Confirm if that your machine is visible in your AD:

Done!

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 228 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers" and "Administering & Deploying SCCM" certified.