如题
这样是否符合 DNS 规范??
当用户查询某个域名的 A 记录,返回的是 CNAME 记录
1
Showfom 2018-07-19 01:01:42 +08:00
CNAME 会继承 TXT SOA MX 等记录,从而引起冲突,所以你怎么做都是不规范的
|
2
msg7086 2018-07-19 02:21:02 +08:00 2
RFC 1034 Domain Concepts and Facilities November 1987
[Page 15] If a CNAME RR is present at a node, no other data should be present. [Page 24] If the data at the node is a CNAME, and QTYPE doesn't match CNAME, copy the CNAME RR into the answer section of the response, change QNAME to the canonical name in the CNAME RR, and go back to step 1. 所以当你 Zone 里对应域名节点是 CNAME 的时候,任何查询都应该返回 CNAME 记录,不论是 A 或者是 AAAA TXT MX 都一样。 |