Pointing domain name to azure traffic manager URL instead of directly to server IP

梦想的初衷 提交于 2019-12-25 01:33:44

问题


So I have a domain badgag.com That points to an IP of the current server.

But I want it instead to point to http://badgag.trafficmanager.net/

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

But I am not sure what A, cname etc records I need to change.

This is how it looks now:

A       @                   104.45.14.249           1 time
CNAME   autoconfig          @                       1 time  
CNAME   autoconfig.admin    @                       1 time  
CNAME   autodiscover        @                       1 time
CNAME   www                 @                       1 time

Thanks in advance :)

PS. I do not use www.badgag.com, I only want the badgag.com to be used.

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


回答1:


If you want to map your domain name to traffic manager, you should use cname.

Looks like this:

NAME                    TYPE   VALUE
--------------------------------------------------
bar.example.com.        CNAME  foo.example.com.


来源:https://stackoverflow.com/questions/49446435/pointing-domain-name-to-azure-traffic-manager-url-instead-of-directly-to-server

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