我在泰國,我的 ISP 是 ToT,我使用的是 Windows。
當我對 google.com 進行 nslookup 時,我得到以下資訊:
C:\Windows\System32>nslookup
DNS request timed out.
timeout was 2 seconds.
Default Server: UnKnown
Address: 8.8.8.8
> set querytype-soa
> google.com
Server: UnKnown
Address: 8.8.8.8
Non-authoritative answer:
Name: google.com
Addresses: 2404:6800:4001:805::1007
118.174.25.178
118.174.25.172
118.174.25.163
118.174.25.187
118.174.25.183
118.174.25.152
118.174.25.177
118.174.25.157
118.174.25.168
118.174.25.162
118.174.25.182
118.174.25.153
118.174.25.158
118.174.25.173
118.174.25.148
118.174.25.167
我看到這些 IP 位址屬於我的 ISP: http://118.174.25.177.ipaddress.com/#ipinfo
查看我的 IPConfig 顯示我的 DNS 伺服器設定為 Google(8.8.8.8 和 8.8.4.4)和華盛頓大學(128.95.120.1)
C:\Windows\System32>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : jasons-work
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 14-DA-E9-E9-8C-9A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::90fd:63af:fa41:c4%12(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.10.15(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Lease Obtained. . . . . . . . . . : Monday, March 3, 2014 10:53:28 AM
Lease Expires . . . . . . . . . . : Sunday, March 23, 2014 12:07:51 PM
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.1
DHCPv6 IAID . . . . . . . . . . . : 253025001
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-80-FE-47-14-DA-E9-E9-8C-9A
DNS Servers . . . . . . . . . . . : 8.8.8.8
8.8.4.4
128.95.120.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{9F166031-E04C-443A-9EF0-66CFA35C6943}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:475:993a:49cb:1d76(Preferred)
Link-local IPv6 Address . . . . . : fe80::475:993a:49cb:1d76%14(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
那麼我的 ISP 正在以某種方式重寫我的 google.com DNS 結果?雖然有些人可能認為這是惡意的,但我認為這可能只是他們的無能。 (我對任何 *.google.com 的請求返回網絡超時)
我沒有安裝任何來自 ISP 的客製化軟體,並且我有最新的防毒軟體。
如何避免 DNS 項目的重寫?
我在乙太網路適配器中禁用了 IPv6,這沒有影響。 (我後來做了 ipconfiglushdns/renew)
編輯: 在 whois 註冊人資料中http://118.174.25.177.ipaddress.com/#ipinfo,我看到文字「Google 快取系統的 IP 分配」。因此,這確實似乎證實了我的 ISP 試圖緩存谷歌並搞砸了。如何規避這一點的問題仍然存在。
答案1
我認為你只是沒有正確驅動 nslookup 。首先,set querytype-soa
應該給你一個錯誤。如果您的意思確實是set querytype=soa
,那麼您將要求授權起始記錄而不是地址記錄,因此您肯定不會得到您顯示的回應。
也就是說,您得到的答案看起來適合您所在的地區(泰國)。谷歌在世界各地都有網路農場來處理負載。甚至在美國的不同地區也有幾個。
答案2
您的 ISP 與 Google 簽訂了對等協議。雖然它的 IP 歸您的 ISP 網路所有並位於您的 ISP 網路內,但伺服器是 Google 的。