免费公共DNS的IP地址

来路不明的DNS服务器可能导致你的帐号密码轻易被盗,请谨慎使用!国内部分地区运营商又经常搞DNS劫持等流氓手段。在大陆,最科学的方法是将首选DNS服务器设置为“免费的公共DNS的IP地址”,备用DNS服务器设置为当地电信运营商的DNS服务器IP,例如广东电信用户填写 202.96.128.86

1、114DNS:
114.114.114.114
114.114.115.115

2、腾讯(DNSPOD)DNS:
119.29.29.29
119.28.28.28

3、百度DNS:
180.76.76.76
Continue reading "免费公共DNS的IP地址"

纯真IP地址库结构详细解析

一周以来,一直在做 IP地址库的解析。从调研到编码到优化,大概花了有七八天的时间。感觉很好玩。总结一下整个做的过程。

1、关于IP 地址库的解析方式

目前主要的解析方式有两种:通过API,或通过IP数据库。

API方式很简单,目前国内大厂不少提供API接口,只要发送请求的IP,就能获得相应的地理位置。像BAT等等公司都提供IP查询接口。这种解析方式的好处在于,编码简单,一个请求获得数据,然后解析一下就好了(通常只是个json数据),而且不用维护数据库,对本地没有负担。但是缺点也挺明显的,首先是慢,发送网络请求一秒钟发不了几条,其次是有限制,比如百度限制每秒钟 250条请求,防止并发量太大造成网络阻塞,再次要受制于人,什么都要听人家的,万一今天地址换了,明天接口数据格式改了,后天要收费了……哦卖糕的。

IP数据库方式相对来讲复杂一点,需要有完善的数据库,还要建立相应的查询服务。优缺点则跟API方式正好相反:优点是查询快,不受网络和网站的限制,缺点是编码相对复杂,而且要一直维护数据库。数据库国内最著名的是纯真网络,ipip,国外更加著名的GeoIP等等。

我们在权衡利弊之后,决定采取数据库方式。听说GeoIP对国外ip 数据很完善,但是对于国内的ip还是不太全的。因此,我们初步选用纯真IP数据库来解析。

2、存储
下载下来纯真数据库的过程就不介绍了,我也没有闲心去解析dat,就直接解压成txt来做了。数据一共不到45万条。

先普及个常识,那就是IP地址实际上是一个unsigned int值。在群里询问做法的时候我发现很多人居然都不知道这一点。我们看到的IP地址,是4个0~255之间的数,而实际上在计算机中IP地址的表示是32位二进制。 01010101.10101010.00110011.11001100酱婶的。32位二进制,当然就是一个unsigned int的取值范围。IP解析也是一样,把IP转化成int 进行存储和查询,是最节省空间、最效率的方法。

书归正文,解压出来的IP地址库是这样的:

(纯真IP数据库,可以到http://www.cz88.net去下载。这个是公开的。我相信我要不 Continue reading "纯真IP地址库结构详细解析"

Google镜像Host IP解决Gmail、Adsense、Chrome等Google产品无法访问

截止2014年年底,Google在华的服务基本上已经全部无法打开,除了Google的广告联盟能打开,有时候都甚至抽风,Pop想使用Gmail收个邮件都是难上加难。

注1:请使用chrome浏览器,并在地址栏里输入chrome://flags/,然后查找QUIC,启用该协议,
同时建议启用SPDY/4,能让访问更流畅。
注2:请使用https的方式访问,比如:https://www.google.com
注3:默认可能会跳转到www.google.com.hk,可以使用:https://www.google.com/ncr 方式访问,
禁止国别跳转。

具体解决办法如下:

打开我的电脑,输入 %Systemroot%\system32\drivers\etc\hosts ,以记事本打开更改hosts文件,加入下面的代码:

#google hosts 2017.09.27
173.194.74.102 google.com
173.194.74.102 www.google.com
173.194.74.102 m.google.com
173.194.74.102 scholar.google.com
173.194.74.102 translate.google.com
173.194.74.102 books.google.com
173.194.74.102 appengine.google.com
173.194.74.102 maps.google.com
173.194.74.102 news.google.com
173.194.74.102 images.google.com
173.194.74.102 finance.google.com
173.194.74.102 history.google.com
173.194.74.102 drive.google.com
173.194.74.102 docs.google.com
173.194.74.102 plus.google.com
173.194.74.102 play.google.com
173.194.74.102 calendar.google.com
173.194.74.102 domains.google.com
173.194.74.102 code.google.com
173.194.74.102 cloud.google.com
173.194.74.102 earth.google.com
173.194.74.102 places.google.com
173.194.74.102 adwords.google.com
173.194.74.102 sites.google.com
173.194.74.102 keep.google.com
173.194.74.102 support.google.com
173.194.74.102 developers.google.com
173.194.74.102 spreadsheets.google.com
173.194.74.102 video.google.com
173.194.74.102 photos.google.com
173.194.74.102 wallet.google.com
173.194.74.102 groups.google.com
173.194.74.102 myaccount.google.com
173.194.74.102 trends.google.com
173.194.74.102 accounts.google.com
173.194.74.102 design.google.com
173.194.74.102 ipv4.google.com
173.194.74.102 onetoday.google.com
173.194.74.102 material.google.com
173.194.74.102 fonts.google.com
#base services
#google mail begin
173.194.74.102 mail.google.com
173.194.74.102 gmail.com
173.194.74.102 www.gmail.com
173.194.74.102 m.gmail.com
173.194.74.102 m.googlemail.com
173.194.74.102 chatenabled.mail.google.com
173.194.74.102 mail-attachment.googleusercontent.com
173.194.74.102 imap.gmail.com
173.194.74.102 pop.gmail.com
173.194.74.102 smtp.gmail.com
#google mail end
#google software begin
173.194.74.102 www.chrome.com
173.194.74.102 developer.chrome.com
173.194.74.102 chrome.google.com
173.194.74.102 picasa.google.com
173.194.74.102 talkgadget.google.com
173.194.74.102 toolbar.google.com
173.194.74.102 tools.google.com
173.194.74.102 inbox.google.com
#google software end
#apis begin
173.194.74.102 apis.google.com
173.194.74.102 www.googleapis.com
173.194.74.102 android.googleapis.com
173.194.74.102 play.googleapis.com
173.194.74.102 plus.googleapis.com
173.194.74.102 ajax.googleapis.com
173.194.74.102 chart.googleapis.com
173.194.74.102 fonts.googleapis.com
173.194.74.102 redirector-bigcache.googleapis.com
173.194.74.102 translate.googleapis.com
173.194.74.102 maps.googleapis.com
173.194.74.102 content.googleapis.com
173.194.74.102 storage.googleapis.com
173.194.74.102 commondatastorage.googleapis.com
173.194.74.102 static.panoramio.com.storage.googleapis.com
173.194.74.102 g-design.storage.googleapis.com
#apis end
#static begin
173.194.74.102 www.gstatic.com
173.194.74.102 ssl.gstatic.com
173.194.74.102 csi.gstatic.com
173.194.74.102 maps.gstatic.com
173.194.74.102 fonts.gstatic.com
173.194.74.102 encrypted-tbn0.gstatic.com
173.194.74.102 encrypted-tbn1.gstatic.com
173.194.74.102 encrypted-tbn2.gstatic.com
173.194.74.102 encrypted-tbn3.gstatic.com
173.194.74.102 encrypted-tbn4.gstatic.com
173.194.74.102 encrypted-tbn5.gstatic.com
173.194.74.102 encrypted-tbn6.gstatic.com
173.194.74.102 g0.gstatic.com
173.194.74.102 g1.gstatic.com
173.194.74.102 g2.gstatic.com
173.194.74.102 g3.gstatic.com
173.194.74.102 g4.gstatic.com
173.194.74.102 g5.gstatic.com
173.194.74.102 g6.gstatic.com
173.194.74.102 g7.gstatic.com
173.194.74.102 mt0.gstatic.com
173.194.74.102 mt1.gstatic.com
173.194.74.102 mt2.gstatic.com
173.194.74.102 mt3.gstatic.com
173.194.74.102 mt4.gstatic.com
173.194.74.102 mt5.gstatic.com
173.194.74.102 mt6.gstatic.com
173.194.74.102 mt7.gstatic.com
173.194.74.102 t0.gstatic.com
173.194.74.102 t1.gstatic.com
173.194.74.102 t2.gstatic.com
173.194.74.102 t3.gstatic.com
173.194.74.102 t4.gstatic.com
173.194.74.102 t5.gstatic.com
173.194.74.102 t6.gstatic.com
173.194.74.102 t7.gstatic.com
#static end
#usercontent begin
173.194.74.102 1-ps.googleusercontent.com
173.194.74.102 2-ps.googleusercontent.com
173.194.74.102 3-ps.googleusercontent.com
173.194.74.102 4-ps.googleusercontent.com
173.194.74.102 www.googleusercontent.com
173.194.74.102 oauth.googleusercontent.com
173.194.74.102 feedback.googleusercontent.com
173.194.74.102 translate.googleusercontent.com
173.194.74.102 themes.googleusercontent.com
173.194.74.102 webcache.googleusercontent.com
173.194.74.102 books.googleusercontent.com
173.194.74.102 video.googleusercontent.com
173.194.74.102 music-onebox.googleusercontent.com
173.194.74.102 music.googleusercontent.com
173.194.74.102 blogger.googleusercontent.com
173.194.74.102 newsstand.googleusercontent.com
173.194.74.102 producer.googleusercontent.com
173.194.74.102 code-opensocial.googleusercontent.com
173.194.74.102 spreadsheets-opensocial.googleusercontent.com
173.194.74.102 www-calENDar-opensocial.googleusercontent.com
173.194.74.102 www-fc-opensocial.googleusercontent.com
173.194.74.102 www-focus-opensocial.googleusercontent.com
173.194.74.102 www-gm-opensocial.googleusercontent.com
173.194.74.102 www-kix-opensocial.googleusercontent.com
173.194.74.102 www-open-opensocial.googleusercontent.com
173.194.74.102 www-opensocial.googleusercontent.com
173.194.74.102 www-opensocial-sandbox.googleusercontent.com
173.194.74.102 www-oz-opensocial.googleusercontent.com
173.194.74.102 a-oz-opensocial.googleusercontent.com
173.194.74.102 0-open-opensocial.googleusercontent.com
173.194.74.102 1-open-opensocial.googleusercontent.com
173.194.74.102 2-open-opensocial.googleusercontent.com
173.194.74.102 3-open-opensocial.googleusercontent.com
173.194.74.102 0-focus-opensocial.googleusercontent.com
173.194.74.102 1-focus-opensocial.googleusercontent.com
173.194.74.102 2-focus-opensocial.googleusercontent.com
173.194.74.102 3-focus-opensocial.googleusercontent.com
173.194.74.102 doc-00-7o-docs.googleusercontent.com
173.194.74.102 doc-01-7o-docs.googleusercontent.com
173.194.74.102 doc-02-7o-docs.googleusercontent.com
173.194.74.102 doc-03-7o-docs.googleusercontent.com
173.194.74.102 doc-04-7o-docs.googleusercontent.com
173.194.74.102 doc-05-7o-docs.googleusercontent.com
173.194.74.102 doc-06-7o-docs.googleusercontent.com
173.194.74.102 doc-07-7o-docs.googleusercontent.com
173.194.74.102 doc-08-7o-docs.googleusercontent.com
173.194.74.102 doc-09-7o-docs.googleusercontent.com
173.194.74.102 doc-10-7o-docs.googleusercontent.com
173.194.74.102 doc-0a-7o-docs.googleusercontent.com
173.194.74.102 doc-0b-7o-docs.googleusercontent.com
173.194.74.102 doc-0c-7o-docs.googleusercontent.com
173.194.74.102 doc-0d-7o-docs.googleusercontent.com
173.194.74.102 doc-0e-7o-docs.googleusercontent.com
173.194.74.102 doc-0f-7o-docs.googleusercontent.com
173.194.74.102 doc-0g-7o-docs.googleusercontent.com
173.194.74.102 doc-0h-7o-docs.googleusercontent.com
173.194.74.102 doc-0i-7o-docs.googleusercontent.com
173.194.74.102 doc-0j-7o-docs.googleusercontent.com
173.194.74.102 doc-0k-7o-docs.googleusercontent.com
173.194.74.102 doc-0l-7o-docs.googleusercontent.com
173.194.74.102 doc-0m-7o-docs.googleusercontent.com
173.194.74.102 doc-0n-7o-docs.googleusercontent.com
173.194.74.102 doc-0o-7o-docs.googleusercontent.com
173.194.74.102 doc-0p-7o-docs.googleusercontent.com
173.194.74.102 doc-0q-7o-docs.googleusercontent.com
173.194.74.102 doc-0r-7o-docs.googleusercontent.com
173.194.74.102 doc-0s-7o-docs.googleusercontent.com
173.194.74.102 doc-0t-7o-docs.googleusercontent.com
173.194.74.102 doc-00-bc-docs.googleusercontent.com
173.194.74.102 doc-01-bc-docs.googleusercontent.com
173.194.74.102 doc-02-bc-docs.googleusercontent.com
173.194.74.102 doc-03-bc-docs.googleusercontent.com
173.194.74.102 doc-04-bc-docs.googleusercontent.com
173.194.74.102 doc-05-bc-docs.googleusercontent.com
173.194.74.102 doc-06-bc-docs.googleusercontent.com
173.194.74.102 doc-07-bc-docs.googleusercontent.com
173.194.74.102 doc-08-bc-docs.googleusercontent.com
173.194.74.102 doc-09-bc-docs.googleusercontent.com
173.194.74.102 doc-10-bc-docs.googleusercontent.com
173.194.74.102 doc-0a-bc-docs.googleusercontent.com
173.194.74.102 doc-0b-bc-docs.googleusercontent.com
173.194.74.102 doc-0c-bc-docs.googleusercontent.com
173.194.74.102 doc-0d-bc-docs.googleusercontent.com
173.194.74.102 doc-0e-bc-docs.googleusercontent.com
173.194.74.102 doc-0f-bc-docs.googleusercontent.com
173.194.74.102 doc-0g-bc-docs.googleusercontent.com
173.194.74.102 doc-0h-bc-docs.googleusercontent.com
173.194.74.102 doc-0i-bc-docs.googleusercontent.com
173.194.74.102 doc-0j-bc-docs.googleusercontent.com
173.194.74.102 doc-0k-bc-docs.googleusercontent.com
173.194.74.102 doc-0l-bc-docs.googleusercontent.com
173.194.74.102 doc-0m-bc-docs.googleusercontent.com
173.194.74.102 doc-0n-bc-docs.googleusercontent.com
173.194.74.102 doc-0o-bc-docs.googleusercontent.com
173.194.74.102 doc-0p-bc-docs.googleusercontent.com
173.194.74.102 doc-0q-bc-docs.googleusercontent.com
173.194.74.102 doc-0r-bc-docs.googleusercontent.com
173.194.74.102 doc-0s-bc-docs.googleusercontent.com
173.194.74.102 doc-0t-bc-docs.googleusercontent.com
173.194.74.102 doc-00-1s-docs.googleusercontent.com
173.194.74.102 doc-01-1s-docs.googleusercontent.com
173.194.74.102 doc-02-1s-docs.googleusercontent.com
173.194.74.102 doc-03-1s-docs.googleusercontent.com
173.194.74.102 doc-04-1s-docs.googleusercontent.com
173.194.74.102 doc-05-1s-docs.googleusercontent.com
173.194.74.102 doc-06-1s-docs.googleusercontent.com
173.194.74.102 doc-07-1s-docs.googleusercontent.com
173.194.74.102 doc-08-1s-docs.googleusercontent.com
173.194.74.102 doc-09-1s-docs.googleusercontent.com
173.194.74.102 doc-10-1s-docs.googleusercontent.com
173.194.74.102 doc-0a-1s-docs.googleusercontent.com
173.194.74.102 doc-0b-1s-docs.googleusercontent.com
173.194.74.102 doc-0c-1s-docs.googleusercontent.com
173.194.74.102 doc-0d-1s-docs.googleusercontent.com
173.194.74.102 doc-0e-1s-docs.googleusercontent.com
173.194.74.102 doc-0f-1s-docs.googleusercontent.com
173.194.74.102 doc-0g-1s-docs.googleusercontent.com
173.194.74.102 doc-0h-1s-docs.googleusercontent.com
173.194.74.102 doc-0i-1s-docs.googleusercontent.com
173.194.74.102 doc-0j-1s-docs.googleusercontent.com
173.194.74.102 doc-0k-1s-docs.googleusercontent.com
173.194.74.102 doc-0l-1s-docs.googleusercontent.com
173.194.74.102 doc-0m-1s-docs.googleusercontent.com
173.194.74.102 doc-0n-1s-docs.googleusercontent.com
173.194.74.102 doc-0o-1s-docs.googleusercontent.com
173.194.74.102 doc-0p-1s-docs.googleusercontent.com
173.194.74.102 doc-0q-1s-docs.googleusercontent.com
173.194.74.102 doc-0r-1s-docs.googleusercontent.com
173.194.74.102 doc-0s-1s-docs.googleusercontent.com
173.194.74.102 doc-0t-1s-docs.googleusercontent.com
173.194.74.102 doc-04-80-docs.googleusercontent.com
173.194.74.102 doc-08-6g-docs.googleusercontent.com
173.194.74.102 doc-0k-bk-docs.googleusercontent.com
173.194.74.102 doc-10-6g-docs.googleusercontent.com
173.194.74.102 doc-10-00-docs.googleusercontent.com
173.194.74.102 images1-focus-opensocial.googleusercontent.com
173.194.74.102 images2-focus-opensocial.googleusercontent.com
173.194.74.102 images3-focus-opensocial.googleusercontent.com
173.194.74.102 images4-focus-opensocial.googleusercontent.com
173.194.74.102 images5-focus-opensocial.googleusercontent.com
173.194.74.102 images6-focus-opensocial.googleusercontent.com
173.194.74.102 images7-focus-opensocial.googleusercontent.com
173.194.74.102 images8-focus-opensocial.googleusercontent.com
173.194.74.102 images9-focus-opensocial.googleusercontent.com
173.194.74.102 images1-esmobile-opensocial.googleusercontent.com
173.194.74.102 images2-esmobile-opensocial.googleusercontent.com
173.194.74.102 images3-esmobile-opensocial.googleusercontent.com
173.194.74.102 images4-esmobile-opensocial.googleusercontent.com
173.194.74.102 images5-esmobile-opensocial.googleusercontent.com
173.194.74.102 images6-esmobile-opensocial.googleusercontent.com
173.194.74.102 images7-esmobile-opensocial.googleusercontent.com
173.194.74.102 images8-esmobile-opensocial.googleusercontent.com
173.194.74.102 images9-esmobile-opensocial.googleusercontent.com
173.194.74.102 images-docs-opensocial.googleusercontent.com
173.194.74.102 images-oz-opensocial.googleusercontent.com
173.194.74.102 images-lso-opensocial.googleusercontent.com
173.194.74.102 images-blogger-opensocial.googleusercontent.com
173.194.74.102 images-pos-opensocial.googleusercontent.com
173.194.74.102 lh0.googleusercontent.com
173.194.74.102 lh1.googleusercontent.com
173.194.74.102 lh2.googleusercontent.com
173.194.74.102 lh3.googleusercontent.com
173.194.74.102 lh4.googleusercontent.com
173.194.74.102 lh5.googleusercontent.com
173.194.74.102 lh6.googleusercontent.com
173.194.74.102 gp1.googleusercontent.com
173.194.74.102 gp2.googleusercontent.com
173.194.74.102 gp3.googleusercontent.com
173.194.74.102 gp4.googleusercontent.com
173.194.74.102 gp5.googleusercontent.com
173.194.74.102 gp6.googleusercontent.com
173.194.74.102 ci1.googleusercontent.com
173.194.74.102 ci2.googleusercontent.com
173.194.74.102 ci3.googleusercontent.com
173.194.74.102 ci4.googleusercontent.com
173.194.74.102 ci5.googleusercontent.com
173.194.74.102 ci6.googleusercontent.com
173.194.74.102 s1.googleusercontent.com
173.194.74.102 s2.googleusercontent.com
173.194.74.102 s3.googleusercontent.com
173.194.74.102 s4.googleusercontent.com
173.194.74.102 s5.googleusercontent.com
173.194.74.102 s6.googleusercontent.com
173.194.74.102 sp0.googleusercontent.com
173.194.74.102 sp1.googleusercontent.com
173.194.74.102 sp2.googleusercontent.com
173.194.74.102 sp3.googleusercontent.com
173.194.74.102 sp4.googleusercontent.com
173.194.74.102 sp5.googleusercontent.com
173.194.74.102 sp6.googleusercontent.com
173.194.74.102 sp7.googleusercontent.com
173.194.74.102 sp8.googleusercontent.com
173.194.74.102 sp9.googleusercontent.com
173.194.74.102 clients1.googleusercontent.com
173.194.74.102 clients2.googleusercontent.com
173.194.74.102 clients3.googleusercontent.com
173.194.74.102 clients4.googleusercontent.com
173.194.74.102 clients5.googleusercontent.com
173.194.74.102 clients6.googleusercontent.com
173.194.74.102 clients7.googleusercontent.com
#usercontent end
#ggpht begin
173.194.74.102 lh0.ggpht.com
173.194.74.102 lh1.ggpht.com
173.194.74.102 lh2.ggpht.com
173.194.74.102 lh3.ggpht.com
173.194.74.102 lh4.ggpht.com
173.194.74.102 lh5.ggpht.com
173.194.74.102 lh6.ggpht.com
173.194.74.102 nt0.ggpht.com
173.194.74.102 nt1.ggpht.com
173.194.74.102 nt2.ggpht.com
173.194.74.102 nt3.ggpht.com
173.194.74.102 nt4.ggpht.com
173.194.74.102 nt5.ggpht.com
173.194.74.102 nt6.ggpht.com
173.194.74.102 yt0.ggpht.com
173.194.74.102 yt1.ggpht.com
173.194.74.102 yt2.ggpht.com
173.194.74.102 yt3.ggpht.com
173.194.74.102 yt4.ggpht.com
173.194.74.102 yt5.ggpht.com
173.194.74.102 yt6.ggpht.com
173.194.74.102 gm0.ggpht.com
173.194.74.102 gm1.ggpht.com
173.194.74.102 gm2.ggpht.com
173.194.74.102 gm3.ggpht.com
173.194.74.102 gm4.ggpht.com
173.194.74.102 gm5.ggpht.com
173.194.74.102 gm6.ggpht.com
173.194.74.102 geo0.ggpht.com
173.194.74.102 geo1.ggpht.com
173.194.74.102 geo2.ggpht.com
173.194.74.102 geo3.ggpht.com
173.194.74.102 geo4.ggpht.com
173.194.74.102 geo5.ggpht.com
173.194.74.102 geo6.ggpht.com
#ggpht end
#google client begin
173.194.74.102 clients1.google.com
173.194.74.102 clients2.google.com
173.194.74.102 clients3.google.com
173.194.74.102 clients4.google.com
173.194.74.102 clients5.google.com
173.194.74.102 clients6.google.com
173.194.74.102 0.client-channel.google.com
173.194.74.102 1.client-channel.google.com
173.194.74.102nnel.google.com
173.194.74.102 3.client-channel.google.com
173.194.74.102 4.client-channel.google.com
173.194.74.102 5.client-channel.google.com
173.194.74.102 6.client-channel.google.com
173.194.74.102 7.client-channel.google.com
173.194.74.102 8.client-channel.google.com
173.194.74.102 9.client-channel.google.com
173.194.74.102 10.client-channel.google.com
173.194.74.102 11.client-channel.google.com
173.194.74.102 12.client-channel.google.com
173.194.74.102 13.client-channel.google.com
173.194.74.102 14.client-channel.google.com
173.194.74.102 15.client-channel.google.com
173.194.74.102 16.client-channel.google.com
173.194.74.102 17.client-channel.google.com
173.194.74.102 18.client-channel.google.com
173.194.74.102 19.client-channel.google.com
173.194.74.102 20.client-channel.google.com
173.194.74.102 21.client-channel.google.com
173.194.74.102 22.client-channel.google.com
173.194.74.102 23.client-channel.google.com
173.194.74.102 24.client-channel.google.com
173.194.74.102 25.client-channel.google.com
173.194.74.102 26.client-channel.google.com
173.194.74.102 27.client-channel.google.com
173.194.74.102 28.client-channel.google.com
173.194.74.102 29.client-channel.google.com
173.194.74.102 uploads.clients.google.com
173.194.74.102 uploads.client.google.com
173.194.74.102 upload.clients.google.com
173.194.74.102 upload.client.google.com
173.194.74.102 upload.google.com
173.194.74.102 upload.docs.google.com
173.194.74.102 upload.photos.google.com
173.194.74.102 upload.drive.google.com
173.194.74.102 upload.video.google.com
173.194.74.102 uploads.code.google.com
173.194.74.102 uploads.clients.google.com
173.194.74.102 linkhelp.clients.google.com
#google client end
#google others
173.194.74.102 feedburner.google.com
173.194.74.102 feedproxy.google.com
173.194.74.102 0.talkgadget.google.com
173.194.74.102 chromoting-host.talkgadget.google.com
173.194.74.102 chromoting-oauth.talkgadget.google.com
173.194.74.102 chromoting-client.talkgadget.google.com
173.194.74.102 maps-api-ssl.google.com
173.194.74.102 mapsengine.google.com
173.194.74.102 bpui0.google.com
173.194.74.102 i18napis.appspot.com
173.194.74.102 safebrowsing.google.com
173.194.74.102 safebrowsing.clients.google.com
173.194.74.102 safebrowsing-cache.google.com
173.194.74.102 admin.google.com
173.194.74.102 appspot.l.google.com
173.194.74.102 browserchannel-docs.l.google.com
173.194.74.102 browserchannel-spreadsheets.l.google.com
173.194.74.102 browsersync.google.com
173.194.74.102 browsersync.l.google.com
173.194.74.102 cache.l.google.com
173.194.74.102 cache.pack.google.com
173.194.74.102 cbk0.google.com
173.194.74.102 cbk1.google.com
173.194.74.102 cbk2.google.com
173.194.74.102 cbk3.google.com
173.194.74.102 cbks0.google.com
173.194.74.102 cbks1.google.com
173.194.74.102 cbks2.google.com
173.194.74.102 cbks3.google.com
173.194.74.102 dl.google.com
173.194.74.102 dl.l.google.com
173.194.74.102 dl-ssl.google.com
173.194.74.102 encrypted.google.com
173.194.74.102 encrypted-tbn.l.google.com
173.194.74.102 encrypted-tbn0.google.com
173.194.74.102 encrypted-tbn1.google.com
173.194.74.102 encrypted-tbn2.google.com
173.194.74.102 encrypted-tbn3.google.com
173.194.74.102 gg.google.com
173.194.74.102 ghs.google.com
173.194.74.102 ghs.l.google.com
173.194.74.102 ghs46.google.com
173.194.74.102 ghs46.l.google.com
173.194.74.102 googlecode.l.google.com
173.194.74.102 google-public-dns-a.google.com
173.194.74.102 google-public-dns-b.google.com
173.194.74.102 groups.l.google.com
173.194.74.102 investor.google.com
173.194.74.102 kh.google.com
173.194.74.102 kh.l.google.com
173.194.74.102 khm.google.com
173.194.74.102 khm.l.google.com
173.194.74.102 khm0.google.com
173.194.74.102 khm1.google.com
173.194.74.102 khm2.google.com
173.194.74.102 khm3.google.com
173.194.74.102 khmdb.google.com
173.194.74.102 khms.google.com
173.194.74.102 khms.l.google.com
173.194.74.102 khms0.google.com
173.194.74.102 khms1.google.com
173.194.74.102 khms2.google.com
173.194.74.102 khms3.google.com
173.194.74.102 lh2.google.com
173.194.74.102 lh2.l.google.com
173.194.74.102 lh3.google.com
173.194.74.102 lh4.google.com
173.194.74.102 lh5.google.com
173.194.74.102 lh6.google.com
173.194.74.102 mars.google.com
173.194.74.102 mobilemaps.clients.google.com
173.194.74.102 mt.google.com
173.194.74.102 mt.l.google.com
173.194.74.102 mt0.google.com
173.194.74.102 mt1.google.com
173.194.74.102 mt2.google.com
173.194.74.102 mt3.google.com
173.194.74.102 mts.google.com
173.194.74.102 mts.l.google.com
173.194.74.102 mts0.google.com
173.194.74.102 mts1.google.com
173.194.74.102 mts2.google.com
173.194.74.102 mts3.google.com
173.194.74.102 music.google.com
173.194.74.102 mw1.google.com
173.194.74.102 mw2.google.com
173.194.74.102 picasaweb.google.com
173.194.74.102 picasaweb.l.google.com
173.194.74.102 services.google.com
173.194.74.102 sandbox.google.com
173.194.74.102 pack.google.com
173.194.74.102 sb.google.com
173.194.74.102 sb-ssl.google.com
173.194.74.102 script.google.com
173.194.74.102 security.google.com
173.194.74.102 id.google.com
173.194.74.102 id.l.google.com
173.194.74.102 tbn0.google.com
173.194.74.102 tbn1.google.com
173.194.74.102 tbn2.google.com
173.194.74.102 tbn3.google.com
173.194.74.102 voice.google.com
173.194.74.102 wifi.google.com
173.194.74.102 g.co
173.194.74.102 goo.gl
173.194.74.102 goto.google.com
#google others
#google storage begin
173.194.74.102 0.docs.google.com
173.194.74.102 1.docs.google.com
173.194.74.102 2.docs.google.com
173.194.74.102 3.docs.google.com
173.194.74.102 4.docs.google.com
173.194.74.102 5.docs.google.com
173.194.74.102 6.docs.google.com
173.194.74.102 7.docs.google.com
173.194.74.102 8.docs.google.com
173.194.74.102 9.docs.google.com
173.194.74.102 10.docs.google.com
173.194.74.102 0.drive.google.com
173.194.74.102 1.drive.google.com
173.194.74.102 2.drive.google.com
173.194.74.102 3.drive.google.com
173.194.74.102 4.drive.google.com
173.194.74.102 5.drive.google.com
173.194.74.102 6.drive.google.com
173.194.74.102 7.drive.google.com
173.194.74.102 8.drive.google.com
173.194.74.102 9.drive.google.com
173.194.74.102 10.drive.google.com
173.194.74.102 bks0.books.google.com
173.194.74.102 bks1.books.google.com
173.194.74.102 bks2.books.google.com
173.194.74.102 bks3.books.google.com
173.194.74.102 bks4.books.google.com
173.194.74.102 bks5.books.google.com
173.194.74.102 bks6.books.google.com
173.194.74.102 bks7.books.google.com
173.194.74.102 bks8.books.google.com
173.194.74.102 bks9.books.google.com
173.194.74.102 bks10.books.google.com
173.194.74.102 spreadsheets0.google.com
173.194.74.102 spreadsheets1.google.com
173.194.74.102 spreadsheets2.google.com
173.194.74.102 spreadsheets3.google.com
173.194.74.102 spreadsheets4.google.com
173.194.74.102 spreadsheets5.google.com
173.194.74.102 spreadsheets6.google.com
173.194.74.102 spreadsheets7.google.com
173.194.74.102 spreadsheets8.google.com
173.194.74.102 spreadsheets9.google.com
#google storage end
#google.com.hk begin
173.194.74.102 news.google.com.hk
173.194.74.102 books.google.com.hk
173.194.74.102 accounts.google.com.hk
173.194.74.102 clients1.google.com.hk
173.194.74.102 encrypted.google.com.hk
173.194.74.102 groups.google.com.hk
173.194.74.102 id.google.com.hk
173.194.74.102 images.google.com.hk
173.194.74.102 m.google.com.hk
173.194.74.102 maps.google.com.hk
173.194.74.102 picasaweb.google.com.hk
173.194.74.102 scholar.google.com.hk
173.194.74.102 toolbar.google.com.hk
173.194.74.102 translate.google.com.hk
173.194.74.102 wenda.google.com.hk
173.194.74.102 www.google.com.hk
#google.com.hk end
#google.com.tw begin
173.194.74.102 www.google.com.tw
173.194.74.102 accounts.google.com.tw
173.194.74.102 maps.google.com.tw
173.194.74.102 news.google.com.tw
173.194.74.102 books.google.com.tw
173.194.74.102 clients1.google.com.tw
173.194.74.102 encrypted.google.com.tw
173.194.74.102 groups.google.com.tw
173.194.74.102 id.google.com.tw
173.194.74.102 images.google.com.tw
173.194.74.102 m.google.com.tw
173.194.74.102 picasaweb.google.com.tw
173.194.74.102 scholar.google.com.tw
173.194.74.102 toolbar.google.com.tw
173.194.74.102 toolbarqueries.google.com.tw
173.194.74.102 translate.google.com.tw
#google.com.tw end
#google.cn begin
173.194.74.102 g.cn
173.194.74.102 www.g.cn
173.194.74.102 www.gstatic.cn
173.194.74.102 ditu.google.cn
173.194.74.102 maps.google.cn
173.194.74.102 gg.google.cn
173.194.74.102 id.google.cn
173.194.74.102 maps.gstatic.cn
173.194.74.102 m.google.cn
173.194.74.102 mt.google.cn
173.194.74.102 mt0.google.cn
173.194.74.102 mt1.google.cn
173.194.74.102 mt2.google.cn
173.194.74.102 mt3.google.cn
173.194.74.102 news.google.cn
173.194.74.102 scholar.google.cn
173.194.74.102 translate.google.cn
173.194.74.102 www.google.cn
#google.cn end
#begin
173.194.74.102 accounts.l.google.com
173.194.74.102 csi.l.google.com
173.194.74.102 googleapis.l.google.com
173.194.74.102 maps.l.google.com
173.194.74.102 code.l.google.com
173.194.74.102 news.l.google.com
173.194.74.102 images.l.google.com
173.194.74.102 mobile.l.google.com
173.194.74.102 talkx.l.google.com
173.194.74.102 talk.l.google.com
173.194.74.102 large-uploads.l.google.com
173.194.74.102 writely.l.google.com
173.194.74.102 writely-china.l.google.com
173.194.74.102 writely-com.l.google.com
173.194.74.102 www.l.google.com
173.194.74.102 www2.l.google.com
173.194.74.102 www3.l.google.com
173.194.74.102 www4.l.google.com
173.194.74.102 ytstatic.l.google.com
173.194.74.102 wildcard-talkgadget.l.google.com
173.194.74.102 mobile-gtalk.l.google.com
173.194.74.102 safebrowsing.cache.l.google.com
173.194.74.102 spreadsheets-china.l.google.com
173.194.74.102 spreadsheets.l.google.com
173.194.74.102 suggestqueries.l.google.com
173.194.74.102 video-stats.l.google.com
173.194.74.102 sb.l.google.com
173.194.74.102 sb-ssl.l.google.com
173.194.74.102 scholar.l.google.com
173.194.74.102 wifi.l.google.com
173.194.74.102 wire.l.google.com
173.194.74.102 tools.l.google.com
173.194.74.102 photos-ugc.l.google.com
173.194.74.102 music-streaming.l.google.com
173.194.74.102 googlehosted.l.googleusercontent.com
#end
#google alternative domains
173.194.74.102 suggestqueries.google.com
173.194.74.102 www.googledrive.com
173.194.74.102 map.google.com
173.194.74.102 mage.google.com
173.194.74.102 plusone.google.com
173.194.74.102 spreadsheet.google.com
173.194.74.102 ditu.google.com
173.194.74.102 local.google.com
173.194.74.102 answers.google.com
173.194.74.102 profiles.google.com
173.194.74.102 writely.google.com
173.194.74.102 buzz.google.com
173.194.74.102 plus.url.google.com
#google alternative domains end
#google source begin
173.194.74.102 googlesource.com
173.194.74.102 www.googlesource.com
173.194.74.102 android.googlesource.com
173.194.74.102 chromium.googlesource.com
173.194.74.102 gerrit.googlesource.com
173.194.74.102 kernel.googlesource.com
173.194.74.102 gwt.googlesource.com
#google source end
#google anroid begin(access via http)
173.194.74.102 android.com
173.194.74.102 www.android.com
173.194.74.102 developer.android.com
173.194.74.102 market.android.com
173.194.74.102 source.android.com
173.194.74.102 panoramio.com
173.194.74.102 www.panoramio.com
173.194.74.102 static.panoramio.com
173.194.74.102 www.webmproject.org
173.194.74.102 golang.org
173.194.74.102 play.golang.org
173.194.74.102 dev.chromium.org
173.194.74.102 play.golang.org
173.194.74.102 www.appspot.com
173.194.74.102 apprtc.appspot.com
173.194.74.102 goo.gl
173.194.74.102 ampproject.org
173.194.74.102 www.ampproject.org
#google android end
#google hosts 2017 end

然后保存,再关闭浏览器之后重新打开,建议使用Chrome。基本上Google的服务就正常了。

MacOS修改HOST文件的操作方法:

第一种方法:
打开终端,输入 sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts 就可以用文本编辑来编辑host文件,加入上面的代码后保存退出即可。

第二种方法:
打开终端,输入 sudo vi /etc/hosts 输入管理密码,之后按下 i 进行编辑,加入上面的代码,最后按Esc,再按 Shift + 冒号 ,输入 wq 保存并退出。

上面的IP地址很有可能会失效,170927更新可用Google IP地址:
172.217.17.78
173.194.74.102

授人鱼不如授人渔,教你如何获取可用的Google镜像IP地址:

1、使用下面任意网址
http://www.ipip.net/ping.php
http://www.super-ping.com/sc.html

2、输入
adsense.google.com
mail.google.com
imap.gmail.com
www.google.com

其中任意域名等查询,这里能查询到大量的Google IP地址

但不是每个都能用,你把IP地址复制了用浏览器打开,如果能正确打开Google的主页就代表可以用,尽量找一个速度快的。

使用找到能用的IP替换上面的IP,复制到host文件后就行了。

或者
Google Hosts 2017
https://github.com/racaljk/hosts
https://coding.net/u/scaffrey/p/hosts/git
https://laod.cn/hosts/2017-google-hosts.html
http://whosmall.com/?post=148

OpenWrt使用脚本更新Oray花生壳动态DDNS IP

OpenWrt路由器其实新一点的固件都是带有动态DDNS这个东西,但是Pop测试了好久似乎就都无效果。目前只有这个脚本测试可用,而且较为稳定。

1、使用WinSCP进入OpenWrt路由器的/etc/hotplug.d/iface/ 下建立一个名称为 25-oray 的文件,在文件内写入以下代码:

#!/bin/sh -
. /lib/functions/network.sh
USER="UserName"
PASS="Password"
DOMAIN="domin.vicp.net"
URL="http://${USER}:${PASS}@ddns.oray.com:80/ph/update?hostname=${DOMAIN}"

if [ -f /tmp/ddns ]; then Continue reading "OpenWrt使用脚本更新Oray花生壳动态DDNS IP"

OpenWrt配置花生壳DDNS动态域名服务

OpenWrt可以在路由器上配置一下花生壳之类的动态域名服务,就能在外网通过域名访问路由器,以及一些内网的服务了

在OpenWrt中,找到“网络”--“动态DNS”,按照以下的设置配置即可。

启用:打钩

服务:自定义

更新的URL:

http://[USERNAME]:[PASSWORD]@ddns.oray.com/ph/update?hostname=[DOMAIN]&myip=[IP]
或者
http://[USERNAME]:[PASSWORD]@members.3322.net/dyndns/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]

主机名:你的花生壳域 Continue reading "OpenWrt配置花生壳DDNS动态域名服务"

QQ2013去广告显IP插件:NtrQQ 3.4

NtrQQ是一款功能强大的QQ辅助增强插件,主要功能为QQ显IP和QQ去广告,同时增加了一系列强悍的功能。

据NtrQQ的页面介绍,NtrQQ的作者是一个初三的学生,虽然国内有很多QQ显IP去广告的插件,不过都一个个相继倒下,现在这么年轻的作者出现,真是自古英雄出少年啊。

QQ2013正式版 抽取安装办法(还是推荐这个办法,抽出来就是绿色版,比较干净)
1、请先下载QQ安装包
2、安装7ZIP解压缩软 Continue reading "QQ2013去广告显IP插件:NtrQQ 3.4"

利用百度Google查询本机IP

使用起来也非常简单,只要在Google的搜索框里输入what is my ip 或者 ip 两个字母,在百度搜索框里输入 ip 两个字母

就会立刻返回你当前的IP地址,而且支持IPv4、IPv6两种格式,后者会显示2001:db8:0:1234:0:567:8:1之类的。

当然了,如果你身处内部 Continue reading "利用百度Google查询本机IP"

最新Google IP地址(nslookup获取北京Google的IP)

通常情况下,google.cn或g.cn应指向北京Google,目前北京google的IP段为:203.208.32.0 - 203.208.63.255,但并不是每个都有效。取得IP地址最简单的办法:Windows命令行下 ping g.cn 可以得到这个IP,一般情况下这样就可以得到正确的IP地址了。但也有可能ping出来的IP不是北京的,这与你的网络环境有关。

1、获取最新最准确的Google IP地址就是通过nslookup,具体步骤如下:

Google有自己的DNS服务器(ns1.google.com、ns2.google.com等),除此之外还提供免费的公共DNS服务器(IP地址分别为8.8.8.8 和8.8.4.4),为公众提供域名解析服务。

开始--运行,输入cmd,然后再输 Continue reading "最新Google IP地址(nslookup获取北京Google的IP)"

思科交换机根据MAC/IP地址查找对应端口

网络工程师在做日常网络维护的时候可能经常会遇到这种情况:发现某个IP地址流量特别大,或者收发特别异常的时候,想找出该IP对应的用户出来。而在思科交换机搭建的环境中,是能做到通过对方MAC/IP地址来查找对端对应的交换机端口的,具体步骤如下:

  假设对端的MAC地址为:192.168.1.101
  在中心交换机(核心层交换机或汇聚层交换机)上输入:
switch-6509#show ip arp | in 192.168.1.101
Internet 192.168.50.47 2 0011.2233.4455 ARPA Vlan50

  在ARP表中我们找到了和192.168.1.101对应的MAC地址,如果要根据MAC地 Continue reading "思科交换机根据MAC/IP地址查找对应端口"