Traffic Manager 和 CNAME

huangapple go评论80阅读模式
英文:

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

已创建具有地理路由的流量管理器配置文件:

Traffic Manager 和 CNAME

要实现此场景,您可以为指向流量管理器端点的**tm.subdomain.domain.com创建一个CNAME记录**:

Traffic Manager 和 CNAME

在“Value”字段中输入流量管理器端点的FQDN(例如,mytrafficmanager.trafficmanager.net)。创建CNAME记录后,Traffic Manager Geo将能够根据用户的位置将流量路由到适当的区域。

现在,为**subdomain.domain.com创建一个A记录和一个mx记录**,将其指向负载均衡器的公共IP地址。以这种方式使用Traffic Manager Geo将允许您在不影响邮件的情况下在区域之间重定向流量。

Traffic Manager 和 CNAME

如果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:

Traffic Manager 和 CNAME

To achieve this scenario, you can create a CNAME record for tm.subdomain.domain.com that points to the Traffic Manager endpoint:

Traffic Manager 和 CNAME

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.

Traffic Manager 和 CNAME

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

huangapple
  • 本文由 发表于 2023年7月24日 15:54:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752403.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定