作者 主題: DNS問題  (閱讀 1347 次)

0 會員 與 1 訪客 正在閱讀本文。

winson101

  • 懷疑的國中生
  • **
  • 文章數: 74
    • 檢視個人資料
DNS問題
« 於: 2006-01-05 15:48 »
問題1:
我用nslookup查www.yahoo.com,我內部DNS查到的是:
Non-authoritative answer:
Name:    www.yahoo.akadns.net
Addresses:  68.142.197.76, 68.142.197.83, 68.142.197.84, 68.142.197.87
          68.142.197.90, 68.142.197.64, 68.142.197.66, 68.142.197.69
Aliases:  www.yahoo.com

查Hinet 168.95.1.1的DNS是:
Non-authoritative answer:
Name:    www.yahoo.akadns.net
Addresses:  66.94.230.33, 66.94.230.41, 66.94.230.32, 66.94.230.47
          66.94.230.48, 66.94.230.35, 66.94.230.36, 66.94.230.45
Aliases:  www.yahoo.com

我用netstat查本機連至www.yahoo.com的IP是:
66.102.1.104

請問為何會如此呢?應該會連不上才是,怎還是可以連呢,為何呢?太令人疑惑了!還請各位大大幫忙,感謝!

問題2:
為何我指向yahoo.com的DNS Server郤無法查到www.yahoo.com的record,
難道他們只下放給ISP的DNS Server作查詢嗎?不解,還請各位大大能否解惑,感謝!
[root@dns2 ]# dig @168.95.1.1 yahoo.com ns

; <<>> DiG 9.2.1 <<>> @168.95.1.1 yahoo.com ns
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13218
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 5

;; QUESTION SECTION:
;yahoo.com.                     IN      NS

;; ANSWER SECTION:
yahoo.com.              14611   IN      NS      ns5.yahoo.com.
yahoo.com.              14611   IN      NS      ns1.yahoo.com.
yahoo.com.              14611   IN      NS      ns2.yahoo.com.
yahoo.com.              14611   IN      NS      ns3.yahoo.com.
yahoo.com.              14611   IN      NS      ns4.yahoo.com.

;; ADDITIONAL SECTION:
ns5.yahoo.com.          106123  IN      A       216.109.116.17
ns1.yahoo.com.          108450  IN      A       66.218.71.63
ns2.yahoo.com.          121062  IN      A       66.163.169.170
ns3.yahoo.com.          107584  IN      A       217.12.4.104
ns4.yahoo.com.          106373  IN      A       63.250.206.138

;; Query time: 353 msec
;; SERVER: 168.95.1.1#53(168.95.1.1)
;; WHEN: Thu Jan  5 15:59:22 2006
;; MSG SIZE  rcvd: 197

[root@dns2 ]# dig @ns5.yahoo.com www.yahoo.com

; <<>> DiG 9.2.1 <<>> @ns5.yahoo.com www.yahoo.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10875
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0

;; QUESTION SECTION:
;www.yahoo.com.                 IN      A

;; ANSWER SECTION:
www.yahoo.com.          300     IN      CNAME   www.yahoo.akadns.net.

;; AUTHORITY SECTION:
.                       3600000 IN      NS      A.ROOT-SERVERS.net.
.                       3600000 IN      NS      B.ROOT-SERVERS.net.
.                       3600000 IN      NS      C.ROOT-SERVERS.net.
.                       3600000 IN      NS      D.ROOT-SERVERS.net.
.                       3600000 IN      NS      E.ROOT-SERVERS.net.
.                       3600000 IN      NS      F.ROOT-SERVERS.net.
.                       3600000 IN      NS      G.ROOT-SERVERS.net.
.                       3600000 IN      NS      H.ROOT-SERVERS.net.
.                       3600000 IN      NS      I.ROOT-SERVERS.net.
.                       3600000 IN      NS      J.ROOT-SERVERS.net.
.                       3600000 IN      NS      K.ROOT-SERVERS.net.
.                       3600000 IN      NS      L.ROOT-SERVERS.net.
.                       3600000 IN      NS      M.ROOT-SERVERS.net.

;; Query time: 220 msec
;; SERVER: 216.109.116.17#53(ns5.yahoo.com)
;; WHEN: Thu Jan  5 16:00:44 2006
;; MSG SIZE  rcvd: 273

[root@dns2 ]#