設定了hosts檔案不能登陸自己的blog了!

tonykorn97發表於2007-12-01

發現不能登陸自己的blog

用家裡的電腦可以登陸其他的網頁,就是不能登陸自己的blog.用vpn連到公司網路登陸自己的blog又是正常的,鬱悶。

家裡上網是透過一個小路由器上網的,檢視路由器dns為:
域名地址1 202.96.128.86
域名地址2 202.96.134.133


直接把dns地址改為:202.96.134.133,如下:
域名地址1 202.96.134.133
域名地址2 0.0.0.0

還是不能登陸。


發現從公司ping我的blog ip地址是:
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.

C:Documents and SettingsAdministrator>ping tonykorn97.itpub.net

Pinging tonykorn97.itpub.net [61.142.250.172] with 32 bytes of data:

Reply from 61.142.250.172: bytes=32 time=7ms TTL=48
Reply from 61.142.250.172: bytes=32 time=7ms TTL=48
Reply from 61.142.250.172: bytes=32 time=7ms TTL=48
Reply from 61.142.250.172: bytes=32 time=7ms TTL=48

Ping statistics for 61.142.250.172:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 7ms, Maximum = 7ms, Average = 7ms

C:Documents and SettingsAdministrator>


家裡不能上網的是:
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.

C:Documents and Settingstonykorn>ping tonykorn97.itpub.net

Pinging tonykorn97.itpub.net [61.142.250.205] with 32 bytes of data:

Reply from 61.142.250.205: bytes=32 time=14ms TTL=55
Reply from 61.142.250.205: bytes=32 time=13ms TTL=55
Reply from 61.142.250.205: bytes=32 time=14ms TTL=55
Reply from 61.142.250.205: bytes=32 time=12ms TTL=55

Ping statistics for 61.142.250.205:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 14ms, Average = 13ms

C:Documents and Settingstonykorn>

重啟一下路由器解析的地址還是一樣的!


檢視一下公司的dns解析也是透過202.96.134.133呀
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.

C:Documents and SettingsAdministrator>nslookup
Default Server: ns.szptt.net.cn
Address: 202.96.134.133

> tonykorn97.itpub.net
Server: ns.szptt.net.cn
Address: 202.96.134.133

Non-authoritative answer:
Name: tonykorn97.itpub.net
Address: 61.142.250.172

> exit

C:Documents and SettingsAdministrator>


把路由器上修改為網通的dns還是一樣的。


最後發現很早以前在windows下面的hosts檔案當時為了快速登陸設定了Ip地址
127.0.0.1 localhost
61.142.250.205 weblog.itpub.net
61.142.250.205 blog.itpub.net
61.142.250.205 tonykorn97.itpub.net


取消後ok.老虎呀老虎害我不淺。呵呵。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-245813/,如需轉載,請註明出處,否則將追究法律責任。

相關文章