用 nslookup 指令查詢域名的 ip 時,會有一行 “Non-authoritative answer”,例如這樣:
|
1 2 3 4 5 6 7 |
$ nslookup google.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: google.com Address: 216.58.197.110 |
這裡的 Non-authoritative answer 表示所查詢的 DNS (上面是 8.8.8.8),並不是原始的 DNS 紀錄來源,是由域名所設定的 DNS Server 取得資料。
那麼甚麼時候不會出現 Non-authoritative answer 呢,就是直接向域名登記的 DNS 查詢,例如 google.com 使用的 DNS 是 ns1.google.com, 用以下指令查詢便不會出現 Non-authoritative answer:
|
1 2 3 4 5 6 |
$ nslookup google.com ns1.google.com Server: ns1.google.com Address: 216.239.32.10#53 Name: google.com Address: 172.217.31.238 |