In this Azure tutorial, we will discuss Azure virtual machine DNS or Azure virtual machine fully qualified name(FQDN).


When we are creating a virtual machine in Azure, It provides us with a public IP address. That IP we can use to RDP that virtual machine.

The public IP can change multiple times, so it will be a challenge to provide the use of the public IP to RDP a virtual machine.

To help with this scenario, Azure allows us to set the Azure VM DNS.

Public IP can change frequently, but the DNS name will not change, so you can use the DNS name to RDP the virtual machine instead of the Public IP address.

How do I add a DNS to Azure VM?

Follow the below steps to find the FQDN of an Azure VM and add a DNS name to the Azure virtual machine(VM).

1. Login to

2. Search for Virtual machines there.

azure fqdn

3.  You will see the list of VMs created in your Azure subscription. It will show the VM name, Type, Status, ResourceGroup, Location, etc.

fqdn azure

4. Now click on the VM name. “MyNewVM” in my case. You can see the details of your virtual machine like Public IP address, status, Computer name, Operating system, Size, etc.

azure vm dns settings

5. You can also see the DNS name here. Click on the configure link.

azure public ip dns name

6. Select the Assignment as Dynamic. Provide a name for the DNS in the DNS name label field. Then click on the Save button.

How to configure the DNS name in Azure

So now, if you can see, my DNS name is “”. You can see it here on the Overview tab.

fqdn in azure


What Is Azure Public IP DNS Name

To help you connect to a resource with the help of the name, Azure registers the name and the IP address in its DNS. Now, whatever name you provide, Azure appends a subnet like to the name, and then it becomes the fully qualified DNS name.

What is Azure VM Hostname

The names, i.e., the VM name and the hostname, are the same by default when you create a new VM. To access a virtual machine from a different machine available on the same network, you can use the primary IP address and the hostname.

Note that A virtual machine can have up to 10 hostnames and primary IP addresses.

You can view the Azure VM Hostname using the below methods

  • Using Azure Service Management REST API
  • By using Remote Desktop (command prompt or SSH terminal)
  • Using the Service configuration file

What is Azure DNS Server IP Address

Azure DNS Server IP Address is a static IP address that will not change. The Azure DNS Server IP Address is

How to Setup DNS Server In Azure

Below are the steps that need to be followed to set up a DNS server in Azure.

  1. The first step is to make sure you will have to add a DNS to your Virtual Network.
  2. In the Azure Portal, navigate to Networks –> {Network Name} > Configure > DNS servers. Here, you need to add the IP and name to it.
  3. As a next step, deploy the virtual machine inside the virtual network. Then, you must configure its IP to precisely the same IP defined in the Azure Portal.
  4. Now, you need to configure the DNS server with the VM details. Don’t forget to set the forwarders to help you resolve the names from outside the virtual network.
  5. Finally, it would be best to reboot your VM to apply the updated configuration.

You may like the following Azure tutorials:


In this Azure tutorial, We discussed Azure VM FQDN and how to create an FQDN for the Azure VM. Thanks for reading this article !!!