将域名指向 azure 流量管理器 URL 而不是直接指向服务器 IP [英] Pointing domain name to azure traffic manager URL instead of directly to server IP

查看:21
本文介绍了将域名指向 azure 流量管理器 URL 而不是直接指向服务器 IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个域 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

提前致谢:)

附注.我不使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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