Azure流量管理器cname

时间:2016-04-15 14:45:09

标签: azure azure-traffic-manager

嗨,我在两个不同的地区有太多的webapps

webapp1.azurewebsites.net webapp2.azurewebsites.net

webapp1.azurewebsites.net有一个与之关联的自定义域名(www.myrealdomainname.com),并通过我的提供商dns记录上的A Record进行映射。

我还向webapp1.azurewebsites.net添加了一条cname记录,如下所示 - www.myrealdomainname.com到mywebapp.trafficmanager.net

我的问题是,当我访问www.myrealdomainname.com时,它不会通过流量管理器。为什么是这样?门户网站上的仪表板不显示任何内容。

此外,如果我禁用webapp1.azurewebsites.net只留下webapp2.azurewebsites.net,并访问www.myrealdomainname.com,它会向我显示来自webapp1.azurewebsites.net的内容 - 再次它不会通过流量管理器。

这是因为A记录吗?

1 个答案:

答案 0 :(得分:1)

That is most likely the case. I do not understand why you have some DNS records pointing directly at one of the apps anyway if you are using Traffic Manager. Just point all records to Traffic Manager and configure it to distribute your traffic as you need.

Here is a link to the documentation: https://azure.microsoft.com/en-us/documentation/articles/web-sites-traffic-manager-custom-domain-name/

A quote from there: "When your website is configured as a Traffic Manager endpoint, you will use the .trafficmanager.net address when creating DNS records. You can only use CNAME records with Traffic Manager"