我应该在我的 DNS url 末尾附加一个点 (.) 吗?

Vin*_*oft 22 domain-name-system amazon-web-services amazon-route53

我注意到 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.
Run Code Online (Sandbox Code Playgroud)

问题:这是一个错误,还是我应该包括 . 在我的 DNS 设置中?

Anu*_*ioz 32

最后的点是正确的。

这是一个鲜为人知的事实,但完全限定(明确的)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.
Run Code Online (Sandbox Code Playgroud)

这里

  • 请注意,GoDaddy 似乎在界面上忽略了这一事实,用户可以在向其注册的域上指定权威名称服务器,考虑到我对 [输入 Route53 名称服务器给我在 Godaddy 上出现错误](https:// stackoverflow.com/a/22517935/1695906)在 Stack Overflow 上,答案是“删除尾随点”——即使你是对的——这*是*技术上正确的形式。(+1) (3认同)
  • 直到今天,godaddy 还不承认 NS 末尾的尾随句点是有效字符,并且不会通过 UI 接受更改。像 Godaddy 这样的域名托管没有最新的最佳实践,这真的很荒谬。 (3认同)