Performing a DNS lookup with dig results in this answer:
;; QUESTION SECTION: :5.123.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 5.123.168.192.in-addr.arpa. 600 IN PTR linuserv.example.net.123.168.192.in-addr.arpa. ;; AUTHORITY SECTION: 123.168.192.in-addr.arpa. 600 IN NS linuserv.example.net. ;; ADDITIONAL SECTION: linuserv.example.net. 600 IN A 192.168.123.5
What might be wrong in the zone definition?
A. There is no . after linuserv.example.net in the PTR record in the forward lookup zone file
B. There is no . after linuserv in the PTR record in the forward lookup zone file
C. There is no . after linuserv.example.net in the PTR record in the reverse lookup zone file
D. The . in the NS definition in the reverse lookup zone has to be removed
题解
PTR 类型的 DNS 资源记录,可以指定 IP 所对应的网域名称,用于反解(reverse lookup)。
DNS 资源记录的值,如果要填入网域名称的话,最好都使用完整网域名称(FQDN, Fully Qualified Domain Name),也就是将一般的网域名称在结尾处,加上「.」,以示结尾,否则就会造成题目所说的结果。原本 PTR 记录查出来应是「linuserv.example.net.」,但因为在「zone」区块中的 DNS 资源记录设置没有用完整网域名称填写好,而是写成了「linuserv.example.net」,所以就会被 DNS 当成是「linuserv.example.net.@」。
这题答案是选项「C」。
