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

Should I append a dot (.) at the end of my DNS urls?

· 52CE 我爱测

I've noticed that AWS's DNS service (Route53) appends a dot ( . ) at the end of every DNS URL: ns-xxx.awsdns-yy.co.uk. ns-xxx.awsdns-yy.net. ns-xxx.awsdns-yy.org. ns-xxx.awsdns-yy.com. Question: Is this a bug, or should I include…

问题原文

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

I've noticed that AWS's DNS service (Route53) appends a dot (.) at the end of every DNS URL:

ns-xxx.awsdns-yy.co.uk.
ns-xxx.awsdns-yy.net.
ns-xxx.awsdns-yy.org.
ns-xxx.awsdns-yy.com.

Question: Is this a bug, or should I include the . in my DNS settings?

已采纳解答

原帖链接 · Anubioz · CC BY-SA 3.0

The dot at the end is correct.

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. This was documented in the DNS specification, RFC 1034, way back in 1987:

Since a complete domain name ends with the root label, this leads to a
printed form which ends in a dot.  We use this property to distinguish between:

   - a character string which represents a complete domain name
     (often called "absolute").  For example, "poneria.ISI.EDU."

   - a character string that represents the starting labels of a
     domain name which is incomplete, and should be completed by
     local software using knowledge of the local domain (often
     called "relative").  For example, "poneria" used in the
     ISI.EDU domain.

From here

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

资料来源与适用范围

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

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

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