大网数据广告活动
服务器运维问答

Do all domains technically end with "."?

· 52CE 我爱测

My understanding is TLDs are subdomains of the root domain which is represented by ".". So "google.com" in more specific terms should be "google.com.". Under what scenarios would you see a domain ending with a "." like "google.co…

问题原文

原帖链接 · abc · CC BY-SA 4.0

My understanding is TLDs are subdomains of the root domain which is represented by ".".

So "google.com" in more specific terms should be "google.com.".

Under what scenarios would you see a domain ending with a "." like "google.com."? I've seen it before but thought nothing of it at the time.

已采纳解答

原帖链接 · vaizki · CC BY-SA 4.0

Yes, a fully qualified domain name ends with a dot. And a domain name is always relative if it doesn't end with a dot. The OS, application being used, some proxy or other name resolving element may attempt to search the name relative to something else than the root . domain. At the office, it's likely that the company domain is searched before the root for example.

In theory you can use fully qualified domain names everywhere and possibly save the Internet from a few DNS hits and yourself a few milliseconds. In practise, the world is full of validation regular expressions etc which might reject such a (perfectly valid) FQDN.

One specific case where they are very common is when configuring nameservers, for example CNAME records. A zone in the nameserver typically has itself as the "relative root" so to reference a domain name outside of it has to be done with the fully qualified name ending in a dot.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-12-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。