为什么“to.”是有效的域名?
In visiting http://to./
you are given a legitimate website.
Is to.
a valid domain name then, despite not ending with a TLD and having a superfluous period? Why?
Being valid, what would its DNS hierarchy be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最后一个点是完全限定域名的一部分。更多信息请参阅本文。具体来说:
The final dot is part of the fully qualified domain name. More information in this article. Specifically:
to
是汤加的 TLD。没有任何规范规定域名必须包含 TLD 以外的内容;汤加是唯一拥有 TLD 本身 A 记录的 TLD。
但是,大多数浏览器无法识别不包含句点的域名,因此它们使用完整的 FQDN,并带有尾随
.
。to
is the TLD of Tonga.There is no spec that says that a domain name must have something other than a TLD; Tonga is the only TLD that has an A record for the TLD itself.
However, most browsers will not recognize a domain name that doesn't contain a period, so they use the full FQDN, with a trailing
.
.DNS 表示域名的层次结构。正如 T. 指出的,如果您在 FQDN 末尾看到一个点,它仅代表整个域名树的上根点。
在网络浏览器的上下文中,它们往往很优雅,并向最终用户隐藏了此细节。
The DNS represents a hierarchy of domain names. As T. pointed out, if you see a dot at the end of a FQDN, it just represents the upper root point of the whole domain name tree.
In the context of web browsers, they tend to be graceful and hide this detail from end users.