How to setup Azure CNAME

走远了吗. 提交于 2019-12-02 21:47:58

问题


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:


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):

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.



来源:https://stackoverflow.com/questions/44083082/how-to-setup-azure-cname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!