免费更换被封的DreamHost主机IP
刚使用美国空间恢复博客没两天,博客就不能访问了。百度一下,按照说明在命令行下执行了2条命令,结果如下:
C:\Documents and Settings\阵风>ping www.zhangzhenfeng.com
Pinging www.zhangzhenfeng.com [174.37.172.68] with 32 bytes of data:Request timed out.
Request timed out.
Request timed out.
Request timed out.Ping statistics for 174.37.172.68:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\Documents and Settings\阵风>tracert 174.37.172.68
Tracing route to 174.37.172.68-static.reverse.softlayer.com [174.37.172.68]
over a maximum of 30 hops:1 1 ms <1 ms 2 ms 172.16.0.254
2 3 ms 2 ms 2 ms hn.kd.ny.adsl [218.29.86.161]
3 3 ms 2 ms 2 ms hn.kd.ny.adsl [125.42.110.73]
4 3 ms 4 ms 4 ms pc37.zz.ha.cn [61.168.254.37]
5 * * * Request timed out.
6 * * * Request timed out.
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 * * * Request timed out.
30 * * * Request timed out.Trace complete.
我用的是郑州联通的网络,上面显示tracert 过程进行到“郑州联通”路由时被终止了。初步确定网站无法访问是因为IP被封。
DreamHost主机可以添加无限网站,我尝试用Fully Hosted方式增加了1.zhangzhenfeng.com,通过查看DNS获知对于IP是69.163.220.144,再在命令行下执行命令“tracert 69.163.220.144”,显示如下:
Tracing route to apache2-grog.pyongyang.dreamhost.com [69.163.220.144]
over a maximum of 30 hops:
1 1 ms 1 ms 1 ms 172.16.0.254
2 2 ms 3 ms * hn.ly.kd.adsl [61.163.84.33]
3 * 2 ms 3 ms pc93.zz.ha.cn [61.168.19.93]
4 4 ms 3 ms 4 ms pc185.zz.ha.cn [61.168.255.185]
5 4 ms 4 ms 4 ms hn.kd.smx.adsl [221.13.224.149]
6 55 ms 55 ms 55 ms 219.158.9.245
7 42 ms 42 ms 41 ms 219.158.3.246
8 218 ms 219 ms * 219.158.29.170
9 282 ms 282 ms 284 ms 219.158.33.210
10 288 ms 288 ms 288 ms as26347.losangeles.ca.ibone.comcast.net [75.149.
228.206]
11 289 ms 344 ms 287 ms ip-66-33-201-115.dreamhost.com [66.33.201.115]
12 * 288 ms 289 ms apache2-grog.pyongyang.dreamhost.com [69.163.220
.144]Trace complete.
呵呵,运气不错,第一次添加的IP就是可用的。如果运气不好,就多试几次直到找到合适的IP为止。如果1.zhangzhenfeng.com不行,就添加2.zhangzhenfeng.com,3.zhangzhenfeng.com……(添加2.zhangzhenfeng.com时不要删除1.zhangzhenfeng.com,依次类推……因为删除再添加,获得的IP可能与上次相同。)
再从域名列表里找到主域名zhangzhenfeng.com,点击 Web Hosting 列里的 Edit,把它修改成Mirrored,目标是上面的拥有合适IP的子域名1.zhangzhenfeng.com。再查看zhangzhenfeng.com的DNS信息,与1.zhangzhenfeng.com的IP已经相同了。此时再将zhangzhenfeng.com由Mirrored改回Fully Hosted方式——这不会令IP再次改变。而刚才添加的1.zhangzhenfeng.com(2.zhangzhenfeng.com、3.zhangzhenfeng.com等)子域名已经没有利用价值了,可以删了。
一个多月来,网站运行正常,看来这个IP还不错,一直没人拿它做坏事,呵呵。