Introduction
This article tells you how to set up a custom domain name for the Azure VM using DNS Zone. DNS zone in Azure is basically used to host the DNS record. To host our domain name in Azure DNS, we need to create a DNS Zone.
Content
- Create a DNS Zone
- Customizing the Nameserver in GoDaddy
- Add a DNS record in Zone
Create a DNS Zone
Step 1
Login into Azure portal (https://portal.azure.com/# )
Step 2
Search for DNS Zone in marketplace, select and click on create.
Step 3
Give a domain name as a DNS Zone name, select a subscription, resource group and location
In the DNS Zone Overview, you can find out the Nameservers, as shown in the below figure
Customizing the Nameserver in GoDaddy
Step 1
Login to GoDaddy
Step 2
Go the Domains and click on DNS as shown in the below figure.
Step 3
In Nameservers section click on change, choose customize from the dropdown and add a nameservers which is listed in Azure DNS Zone
Add a DNS record in Zone
Step 1
Go back to Azure portal DNS Zone
Step 2
Click on Record Set, as show in the below figure
Step 3Give the name as www, choose type as A, and add an IP (In my case I added an IP of my VM which is created in my last
article), as shown in the below figure.
Usually DNS propagation will take some time, we can confirm the mapping using the powershell nslookup command as shown in the below figure.
I hope you have enjoyed this article. Your valuable feedback, questions, or comments about this article are always welcome.