如果您不必附加任何其他标识符以明确解析主机,我会认为名称是完全限定的.如果不是这样,则该名称将被视为相对名称.
RFC1535讨论了一个重点:
An absolute “rooted” FQDN is of the format {name}{.} A non “rooted”
domain name is of the format {name}
在上面的示例中,您将.tk解析为tk.确保它是明确的.有趣的是,这确实有一个有效的A记录.
$dig tk.
; <<>> DiG 9.8.3-P1 <<>> tk.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<
;; flags: qr rd ra; QUERY: 1,ANSWER: 1,AUTHORITY: 0,ADDITIONAL: 0
;; QUESTION SECTION:
;tk. IN A
;; ANSWER SECTION:
tk. 20 IN A 217.119.57.22
编辑:RFC1535有另一个有趣的引用:
Further,in any event where a “.” exists in a specified name it should be assumed to be a fully qualified domain name (FQDN) and SHOULD be tried as a rooted name first.