英文:
Traffic Manager and CNAME
问题
公司已决定实施地理位置多区域解决方案。选择了Traffic Manager Geo来路由流量到各个区域。但出现了一些问题。
先前的解决方案基于一个区域,域格式为subdomain.domain.com。DNS中的A记录指向负载均衡器的公共IP。还有一个MX记录,用于@subdomain.domain.com的邮件流量。
Traffic Manager要求使用CNAME,不能再使用A记录。与此同时,DNS提供商拒绝同时使用CNAME和MX,因为这违反了DNS标准。我直到昨天才知道这个限制。
我脑海中浮现的第一个想法是将电子邮件迁移到不同的域。服务所有者拒绝了这个想法,但如果没有其他选择的话,他可能会接受。
有没有人有任何想法如何解决这个问题?我的意思是如何在不影响邮件流量的情况下使用Traffic Manager?
致以最诚挚的问候,
Dmitry
配置了CNAME记录,指向Traffic Manager的FQDN。它有效,但邮件流量不起作用,因为MX记录已被移除。
英文:
The company has decided to implement geo-located multi-region solution. The Traffic Manager Geo was selected to route the traffic between regions. But there is some issue.
The previous solution based on one region, domain format subdomain.domain.com. The A record in DNS pointed to public IP of the Load Balancer. Also there is MX record, which is required for mail flow for @subdomain.domain.com.
Traffic Manager requires to have CNAME, I can't use A record anymore. At the same time, the DNS provider declines to have both CNAME and MX, because it's against of DNS standard. I didn't know about this limitation till yesterday.
The first idea came to mine mind: migrate to the email from different domain. The service owner is declines it, but probably he will accept it, if no other options available.
Does anyone have any idea how to fix the problem? I mean how to use Traffic Manager without breaking mailflow?
Best regards,
Dmitry
Configured CNAME record, which points to FQDN of the Traffic Manager. It works, but mail flow is not, because MX record has been removed.
答案1
得分: 1
已创建具有地理路由的流量管理器配置文件:
要实现此场景,您可以为指向流量管理器端点的**tm.subdomain.domain.com
创建一个CNAME记录
**:
在“Value”字段中输入流量管理器端点的FQDN(例如,mytrafficmanager.trafficmanager.net)。创建CNAME记录后,Traffic Manager Geo将能够根据用户的位置将流量路由到适当的区域。
现在,为**subdomain.domain.com
创建一个A记录
和一个mx记录
**,将其指向负载均衡器的公共IP地址。以这种方式使用Traffic Manager Geo将允许您在不影响邮件的情况下在区域之间重定向流量。
如果DNS提供商无法同时支持CNAME和MX记录,请在保留主域的DNS配置的同时,使用不同的DNS提供商为流量管理器选择一个不同的DNS提供商。您可以将用于Traffic Manager的子域委托给这个不同的DNS提供商。
参考:
Tutorial: Configure geographic traffic routing with Azure Traffic Manager | Microsoft Learn
英文:
Created traffic manager profile with Geographic routing:
To achieve this scenario, you can create a CNAME record
for tm.subdomain.domain.com
that points to the Traffic Manager endpoint:
Enter the Traffic Manager endpoint FQDN (for instance, mytrafficmanager.trafficmanager.net) in the “Value” field. Traffic Manager Geo will be able to route traffic to the appropriate region based on the user’s location after the CNAME record has been created.
Now, create a A record
and a mx record
for subdomain.domain.com
that point to the load balancer’s public IP address. Using Traffic Manager Geo in this manner will allow you to redirect traffic between regions without affecting mail.
If the DNS provider is unable to support both CNAME and MX records use different DNS provider for traffic manager while keeping the main domain’s DNS configuration with the existing provider. You can delegate the subdomain used for the Traffic Manager to this different DNS provider.
Reference:
Tutorial: Configure geographic traffic routing with Azure Traffic Manager | Microsoft Learn
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论