ns-xxx.awsdns-yy.co.uk.
ns-xxx.awsdns-yy.net.
ns-xxx.awsdns-yy.org.
ns-xxx.awsdns-yy.com.
问题:这是一个 bug 吗?还是我应该在我的 DNS 设置中包含“.”?
ns-xxx.awsdns-yy.co.uk.
ns-xxx.awsdns-yy.net.
ns-xxx.awsdns-yy.org.
ns-xxx.awsdns-yy.com.
问题:这是一个 bug 吗?还是我应该在我的 DNS 设置中包含“.”?
末尾的点是正确的。
这是一个鲜为人知的事实,但是完全合格(无歧义)的DNS域名末尾有一个点。运行DNS服务器的人通常知道这一点(如果省略了末尾的点,您的DNS配置可能无法正常工作),但一般公众通常不知道。没有末尾点的域名不是完全合格的,可能存在歧义。这在1987年的DNS规范RFC 1034中有记录:
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.
从这里开始