为什么“to.”是有效的域名?

发布于 2024-08-29 16:45:16 字数 187 浏览 4 评论 0原文

在访问 http://to./ 时,您将获得一个合法网站。

那么,尽管没有以 TLD 结尾并且有多余的句点,to. 是一个有效的域名吗?为什么?

如果有效的话,它的 DNS 层次结构是什么?

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 技术交流群。

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

发布评论

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

评论(3

淡莣 2024-09-05 16:45:16

最后一个点是完全限定域名的一部分。更多信息请参阅本文。具体来说:

这是一个鲜为人知的事实,但完全限定(明确)的 DNS 域名末尾有一个点。运行 DNS 服务器的人通常都知道这一点(如果您错过了尾随的点,您的 DNS 配置不太可能起作用),但一般公众通常不知道。末尾没有点的域名不是完全合格的,并且可能存在歧义。

The final dot is part of the fully qualified domain name. More information in this article. Specifically:

It's a little-known fact, but fully-qualified (unambiguous) DNS domain names have a dot at the end. People running DNS servers usually know this (if you miss the trailing dots out, your DNS configuration is unlikely to work) but the general public usually doesn't. A domain name that doesn't have a dot at the end is not fully-qualified and is potentially ambiguous.

所有深爱都是秘密 2024-09-05 16:45:16

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 ..

自由范儿 2024-09-05 16:45:16

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.

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