如何设置 Azure CNAME [英] How to setup Azure CNAME

查看:49
本文介绍了如何设置 Azure CNAME的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Azure 上设置 VPS,但一直在配置 CNAME.该网站已在第三方注册.

我已经设置了以下内容:

名称类型 TTL 值@ NS 120 ns1-01.azure-dns.com ...等@ SOA 3600 蔚蓝...www CNAME 3600

我不知道该为 CNAME 值添加什么内容.在

2.登录您的第3方域名注册配置页面,然后添加 CNAME,如下所示:

主机类型值xxxxx CNAME jasontest321.eastus.cloudapp.azure.com

有关向此 VM 添加 FQDN 的更多信息,请参阅此 链接.

如果您将记录添加到 DNS 区域,并且想要将您的 3rd 方域名映射映射到 Azure DNS 区域,我们可以按照 answer.

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?

解决方案

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.

这篇关于如何设置 Azure CNAME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆