注意:本人并非专业运维人员,对 DNS 相关技术的了解并不全面。本文由 ChatGPT 核查未发现错误,但不代表一定正确。欢迎指正。今天在做某个业务时,才发现 CNAME 和 MX 记录不能共存,进一步查询后,发现 CNAME 记录不能和其他任何记录共存。具体原因是 RFC 的相关定义:RFC 1034, Section 3.6.2:If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different.RFC 1912, Section 2.4:A CNAME record is not allowed to coexist with any other data. In other words, iffoo.example.comis defined as a CNAME pointing tobar.example.com, you can’t also have an MX record, or an A record, or a TXT record forfoo.example.com. This rule also appli
...
继续阅读
(61)