问题描述
所以我有一个域 badgag.com 指向当前服务器的IP.
So I have a domain badgag.com That points to an IP of the current server.
但我希望它指向 http://badgag.trafficmanager.net/
此DNS将以最低的延迟路由到服务器.
This DNS will route to the server with the lowest latency.
所以我尝试将映射更改为
So I try to change mapping to
badgag.com -> badgag.trafficmanager.net -> closest web app -> IP
但是我不确定我需要更改哪些A,cname等记录.
But I am not sure what A, cname etc records I need to change.
这是现在的样子:
A @ 104.45.14.249 1 time
CNAME autoconfig @ 1 time
CNAME autoconfig.admin @ 1 time
CNAME autodiscover @ 1 time
CNAME www @ 1 time
先谢谢您了:)
PS.我不使用www.badgag.com,我只希望使用 badgag.com .
PS.I do not use www.badgag.com, I only want the badgag.com to be used.
PSPS.经过一番研究,我发现,指向像badgag.trafficmanager.com这样的域名,从我的A记录中获取唯一的公共IP是不可能的.为了支持裸域"或根域",我需要使用ALIAS记录在顶点域上提供类似CNAME的行为.但不确定确切如何. 在此处了解更多信息
PSPS. After some research I found out that, pointing to a domain name like badgag.trafficmanager.com that does not have a unique public IP from my A record is not possible. In order to support "naked domains" or "root domain" I would need to use an ALIAS record to provide CNAME-like behavior on apex domains. But not sure exactly how. More info on that here
推荐答案
如果要将域名映射到流量管理器,则应使用cname
.
If you want to map your domain name to traffic manager, you should use cname
.
看起来像这样:
NAME TYPE VALUE
--------------------------------------------------
bar.example.com. CNAME foo.example.com.
这篇关于将域名指向azure流量管理器URL,而不是直接指向服务器IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!