Assign DNS name to VM in Azure to ensure remote connectivity

By default, an Azure virtual machine will receive a dynamic public IP, and as long as we keep it up and running that IP will not change. That is OK — depending on the nature of the application. However, in some cases — for example when we need to RDP to a server and the public IP keeps changing — that may become a challenge. Azure offers a great feature where we can assign a DNS name to the server, so even if the public IP changes, as long as you use the DNS name the connection will work.

We can configure a DNS name and use that to connect to our VMs. The process is straightforward. In the Overview page of any given VM, click on Configure located in the DNS Name item.

Assign a name for the VM in question, but keep in mind that suffix is being shown underneath the text field where we are defining the name of the VM. In our case, our VM will have the name vm001.canadacentral.cloudapp.azure.com. Click on Save.

We can use a DNS lookup site (in our example below, we are using MXToolbox) to see if the changes are in effect. As we can see the name is resolving to the public IP address of that instance.

Using this feature, the administrator can connect to the VM using DNS names instead of chasing them around with a dynamic public IP, which may change during the lifecycle of the server. When we check back in the Overview page of that given VM, we can copy the DNS name and use it accordingly.

Featured image: Shutterstock

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange, CISSP and several other certifications. Anderson contributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at Techgenix.com, MSExchange.org, ITPROCentral.com and Anderson Patricio.org (Portuguese).

Share
Published by
Anderson Patricio

Recent Posts

What are the potential disadvantages of SSL/TLS?

There’s wide consensus on the benefits of SSL/TLS. However, not as much attention has been given to SSL/TLS disadvantages.

1 day ago

Exploring native software inventory logging in Windows Server

Windows Server has built-software inventory logging that can be very useful. Here’s how to use this little-known feature.

1 day ago

Passwordless authentication: Safer, better, and about time

Passwordless authentication has quickly become one of the primary means by which users access their laptops, phones, and tablets because…

1 day ago

Automated Incident Response in Office 365 ATP simplifies cybersecurity

Microsoft has pumped up Office 365 Advanced Threat Protection with a new feature, Automated Incident Response. Here’s what you need…

2 days ago

IFA 2019: Smart TVs and even smarter wearables unveiled

What will be in your living room or on your wrist this year? It may very likely be one of…

2 days ago

Consider these SD-WAN technologies for faster, more reliable networking

As virtualization becomes a major part of organizations’ infrastructure, these SD-WAN technologies provide faster and more reliable networking solutions.

2 days ago