每个域的顶部始终存在显式的 SOA 和 NS 记录,因此可以防止在域的同一部分使用 CNAME层次结构。
No, you can't do that - CNAME records can only exist as single records and not combined with any other resource record (DNSSEC records excepted).
There are explicit SOA and NS records always present at the top of each domain, so that prevents the use of the CNAME at the same part of the hierarchy.
It's true, given a domain example.com, some DNS servers (tinydns for one) won't complain if you set up CNAME records for both example.com and www.example.com. But still I'd avoid it as it would break e-mail for example.com (see RFC 2821 "Address Resolution and Mail Handling").
发布评论
评论(2)
不,您不能这样做 -
CNAME
记录只能作为单个记录存在,不能与任何其他资源记录组合(DNSSEC 记录除外)。每个域的顶部始终存在显式的
SOA
和NS
记录,因此可以防止在域的同一部分使用CNAME
层次结构。No, you can't do that -
CNAME
records can only exist as single records and not combined with any other resource record (DNSSEC records excepted).There are explicit
SOA
andNS
records always present at the top of each domain, so that prevents the use of theCNAME
at the same part of the hierarchy.确实如此,给定一个域 example.com,如果您为 example.com 和 www.example.com。 但我仍然会避免它,因为它会破坏 example.com 的电子邮件(请参阅 RFC 2821“地址解析和邮件处理”)。
It's true, given a domain example.com, some DNS servers (tinydns for one) won't complain if you set up CNAME records for both example.com and www.example.com. But still I'd avoid it as it would break e-mail for example.com (see RFC 2821 "Address Resolution and Mail Handling").