DNS RFC 是否允许根域 CNAME 到其他域?

发布于 2024-07-15 09:18:55 字数 1459 浏览 3 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

默嘫て 2024-07-22 09:18:55

不,您不能这样做 - CNAME 记录只能作为单个记录存在,不能与任何其他资源记录组合(DNSSEC 记录除外)。

每个域的顶部始终存在显式的 SOANS 记录,因此可以防止在域的同一部分使用 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.

怪我闹别瞎闹 2024-07-22 09:18:55

确实如此,给定一个域 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").

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文