Ifwat
Ifwat

Reputation: 1553

How to have domain for Azure VM

I did a research a few days about this. But still do not find any solution yet.

I have vm that host a website. The IP address for this website able to access from outside. But now i want to have custom domain for this vm.

Anyone know where I should refer to? Please share any link etc.

Upvotes: 0

Views: 2358

Answers (2)

Nancy Xiong
Nancy Xiong

Reputation: 28284

After you deployed an Azure VM, you also could configure an FQDN for this VM so that you can access the VM via Azure Provided DNS resolution which is mapped to the public IP address of Azure VM. Read how to create a FQDN. If so, you could directly access the VM via this FQDN.

Otherwise, you need to purchase a domain then use a CNAME to redirect your custom domain like www.example.com to this FQDN or use a A record mapping to the public IP address in your domain provider.

Upvotes: 1

4c74356b41
4c74356b41

Reputation: 72191

just create a A DNS record with your domain name registar, or use Azure DNS (you would need to delegate your domain to Azure DNS), or use Azure built-in DNS for your VM. If you dont have a domain - you need to buy it first.

https://serverfault.com/questions/143411/godaddy-linking-domain-name-to-ip-address

Upvotes: 1

Related Questions