How to setup Azure CNAME

2019-03-06 17:36发布

I am setting up a VPS on Azure and am stuck at configing the CNAME. The site is registered with a 3rd party.

I have setup the following:

NAME TYPE  TTL   VALUE
@    NS    120   ns1-01.azure-dns.com ... etc
@    SOA   3600  azuredns...
www  CNAME 3600

I am stuck at what to put for the CNAME value. At https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-custom-domain-name it mentions using

myapp.azurewebsites.net 

however for another VPS on azure I am using

otherapp.location.cloudapp.azure.com

In the azure docs they show how to find ip details for a hosted webapp https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-godaddy-custom-domain-name but no mention on how to find for a hosted VPS.

Any idea where can I find the details for what I should use?

1条回答
小情绪 Triste *
2楼-- · 2019-03-06 18:02

If you just want to map your domain name for this Azure VM, we can add CNAME to the third party follow those steps:
1.Add FQDN to this VM first(configure this with Azure public IP): enter image description here

2.login your 3rd party domain register configure page, then add CNAME like this:

Host          type                value
xxxxx         CNAME              jasontest321.eastus.cloudapp.azure.com

More information about add FQDN to this VM, please refer to this link.

If you add record to DNS zone, and you want to map your 3rd party domain name map to Azure DNS zone, we can follow those steps in that answer.

查看更多
登录 后发表回答