1

I have an Azure Virtual Machine which has myvmname.northeurope.cloudapp.azure.com set as a DNS name. I want it to be something like somename.my.domain.com. I am an owner of my.domain.com. How do I change it on the portal for the VM? Did I get stuck with default provided one? Docs are not clear for VMs.

Mike26
  • 99
  • 3
  • 16

1 Answers1

2

Azure VM has a default FQDN that you only could change the DNS label. If you want to add your own custom domain for that Azure VM, you could add a CNAME type DNS record like somename.my.domain.com CNAME myvmname.northeurope.cloudapp.azure.com or A type record like somename.my.domain.com A your Azure VM public IP address in your DNS domain my.domain.com provider.

You also could select to host your domain in Azure DNS, then you can manage your DNS records on Azure portal. See this blog for more details.

Nancy
  • 26,865
  • 3
  • 18
  • 34
  • Nancy, can you let know where to add this CNAME or A type DNS record? Do you mean we can add "Record set" under my DNS zone? Btw, my custom domain is bought via Azure. – Tao Lu Dec 08 '20 at 22:43
  • You can search "App Service Domains" in your azure search bar, then you can find the purchased domain, then you can add records in the ''manage DNS records" – Nancy Dec 09 '20 at 01:12
  • Thanks Nancy for your response! I cannot find anything by searching for "App Service Domains". But I do find my domain as "DNS zone" under "All resources". How can I apply this custom domain to my linux VM? – Tao Lu Dec 09 '20 at 01:21
  • I created an A record under this DNS zone. but it seems not working. Btw, I don't have HTTP server for now. My application server is listening on port 80. I paste a screen shot of my record set under my DNS zone. Please see below. – Tao Lu Dec 09 '20 at 02:08