我应该在我的DNS网址末尾添加一个句点(.)吗?

我注意到AWS的DNS服务(Route53)在每个DNS URL的末尾都会添加一个点(.)。
ns-xxx.awsdns-yy.co.uk.
ns-xxx.awsdns-yy.net.
ns-xxx.awsdns-yy.org.
ns-xxx.awsdns-yy.com.
问题:这是一个 bug 吗?还是我应该在我的 DNS 设置中包含“.”?
1个回答

末尾的点是正确的。

这是一个鲜为人知的事实,但是完全合格(无歧义)的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.
这里开始

3请注意,Go Daddy似乎在其界面上忽略了这一事实,用户可以在他们注册的域名上指定权威名称服务器。根据我在Stack Overflow上对在Godaddy上输入Route53名称服务器时出现错误的回答获得的赞数,答案是“删除尾部的句点” - 即使你是对的 - 这 技术上正确的形式。(+1) - Michael - sqlbot
3截止到今天,Godaddy并不认可NS末尾的句点作为有效字符,并且不会通过用户界面接受更改。像Godaddy这样的域名托管服务与最佳实践不符,真是荒谬。 - TechNerd