CNAME记录还会转发MX请求吗?

编程入门 行业动态 更新时间:2024-10-25 02:28:03
本文介绍了CNAME记录还会转发MX请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的DNS设置了由A和MX记录组成的域base。还有其他几个域名被设置为CNAME记录,指向base。 我需要为CNAME域设置任何特殊的(如额外的MX记录),或者CNAME记录也会转发任何MX请求。

My DNS has a set up for the domain base that consists of A and MX records. There are several other domains that are set up with CNAME records, pointing to base. Do I need to set up anything special (like extra MX records) for the CNAME domains, or will the CNAME records also forward any MX requests.

示例: 如果发送到info@otherdomain的电子邮件地址可以正确地传送到base的MX(如果只有这些)DNS记录到位: p>

Example: Will an email sent to info@otherdomain be delivered correctly to the MX of base if these (and only these) DNS records are in place:

; A and MX set up for base base. 3600 IN A 123.45.67.89 mail.base. 3600 A 123.45.67.89 base. 3600 IN MX 10 mail.base. ; CNAME set up for otherdomain otherdomain. CNAME IN A base.

推荐答案

CNAME 导致所有RR类型的查询(不包括 CNAME 本身)被定向到目标名称。这包括 MX 。所以是的,上述区域数据将导致查询 otherdomain。的 MX 来解析为 mail.base。。

CNAME causes queries for all RR types (excluding CNAME itself) to be directed to the target name. That includes MX. So yes, the above zone data will cause queries for otherdomain.'s MX to resolve to mail.base..

尝试使用 dig 或您的最喜欢的DNS客户端。你不仅可以肯定结果,还可以等待4个小时才能回答你的问题,然后才能得到答案!

Experiment with dig or your favorite DNS client. Not only will you confirm the result for sure, but you won't have to wait 4 hours for someone to answer your SO question before you get your answer!

不幸的是,在这种特殊情况下,如果您的域名真的是 otherdomain。,您将无法配置一个 CNAME 它的资源记录。这是因为具有 CNAME 记录的域不能同时拥有任何其他类型的资源记录。但是,如果 otherdomain。直接位于 com (或其他gTLD)之下,则必然位于一个区域,所以它至少需要 SOA 和 NS 记录。

Unfortunately, in this particular case, if your domain is really of the form otherdomain., you would not be able to configure a CNAME resource records for it. This is because domains that have CNAME records cannot have any other type of resource record at the same time. Yet if otherdomain. is directly below com. (or another gTLD), it is necessarily at the top of a zone and so it needs at least SOA and NS records.

更多推荐

CNAME记录还会转发MX请求吗?

本文发布于:2023-11-06 01:31:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562390.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:还会   CNAME   MX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!