获取地址:
方法一:这个地址会定时更新google https地址:http://coldplains.com/tools/getip.php

试验发现上面的地址打不开。。。。
方法二:命令行

也连不上了。。。。
- senrsl@senrsl-desktop:~/下载$ nslookup
- > server 8.8.8.8
- Default server: 8.8.8.8
- Address: 8.8.8.8#53
- > set vc
- > encrypted.google.com
- ;; connection timed out; no servers could be reached
- >
方法三:Google IP 地址范围
官方提供的这个地址https://support.google.com/a/answer/60764?hl=zh-Hans
看看效果
nslookup -q=TXT _netblocks.google.com 8.8.8.8
nslookup -q=TXT _netblocks2.google.com 8.8.8.8
nslookup -q=TXT _netblocks3.google.com 8.8.8.8
本地DNS服务器
- senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
- ;; connection timed out; no servers could be reached
- senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks2.google.com 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- _netblocks2.google.com text = "v=spf1 ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ~all"
- Authoritative answers can be found from:
- senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks3.google.com 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- _netblocks3.google.com text = "v=spf1 ~all"
- Authoritative answers can be found from:
- senrsl@senrsl-desktop:~/下载$
可以使用新浪的IP数据库查看IP地理位置和所有者的信息,比如得到的IP为203.208.46.146,那么可以用
- senrsl@senrsl-desktop:~/下载$ nslookup g.cn
- Server: 127.0.1.1
- Address: 127.0.1.1#53
- Non-authoritative answer:
- Name: g.cn
- Address: 203.208.48.144
- Name: g.cn
- Address: 203.208.48.147
- Name: g.cn
- Address: 203.208.48.148
- Name: g.cn
- Address: 203.208.48.146
- Name: g.cn
- Address: 203.208.48.145
- senrsl@senrsl-desktop:~/下载$ nslookup g.tw
- Server: 127.0.1.1
- Address: 127.0.1.1#53
- Non-authoritative answer:
- Name: g.tw
- Address: 211.98.71.195
- senrsl@senrsl-desktop:~/下载$ nslookup g.cn ns1.google.com
- Server: ns1.google.com
- Address: 216.239.32.10#53
- Name: g.cn
- Address: 203.208.46.178
- Name: g.cn
- Address: 203.208.46.179
- Name: g.cn
- Address: 203.208.46.177
- Name: g.cn
- Address: 203.208.46.176
- Name: g.cn
- Address: 203.208.46.180
- senrsl@senrsl-desktop:~/下载$ nslookup -vc g.cn 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- Name: g.cn
- Address: 203.208.37.19
- Name: g.cn
- Address: 203.208.37.18
- Name: g.cn
- Address: 203.208.37.16
- Name: g.cn
- Address: 203.208.37.20
- Name: g.cn
- Address: 203.208.37.17
- senrsl@senrsl-desktop:~/下载$
http://int.dpool.sina.com.cn/iplookup/iplookup.php?ip=203.208.46.146 来查看这个IP的归属。
如果改成http://int.dpool.sina.com.cn/iplookup /iplookup.php?ip=203.208.46.0,则会显示相同所有者的IP地址段的信息。
方法四:http://just-ping.com/

好吧,根据以上四个,鉴定出
所有g.cn的ip都是404

然后上面方法四,改成google.com可以挑上面ttl小的打开

方法五。。。。
还是不投机取巧了
首先,获取谷歌ip地址段
然后,折腾这个开源的工具google-hosts-master
- senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- _netblocks.google.com text = "v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ~all"
- Authoritative answers can be found from:
- senrsl@senrsl-desktop:~/下载$
2014年08月04日15:28:07 获取的所有地址后面都是NO,
senrsl@senrsl-desktop:~/下载/google-hosts-master/scripts$ ./select.sh
[WARNING] *.google.com
[WARNING] accounts.google.com
[WARNING] checkout.google.com
[WARNING] adwords.google.com
[WARNING] mail.google.com
[WARNING] *.mail.google.com
[WARNING] *.googleusercontent.com
[WARNING] *.gstatic.com
[WARNING] *.googleapis.com
[WARNING] *.appspot.com
[WARNING] *.googlecode.com
[WARNING] *.google-analytics.com
[WARNING] ssl.google-analytics.com
无法生成host.all文件。。。。
跑到github上给他们issue
https://github.com/txthinking/google-hosts/issues/15
暂停
2014年08月05日09:52:59 大半夜的那个开源的一个管理去答复我,说是环境问题,在被窝里一想,还真是有可能。
早上起来挨个版本验证
挨个取结果
- ### 脚本依赖
- * grep v2.20
- * sed v4.2.2
- * awk v4.1.1
- * nmap v6.46
- * dig v9.9.2-P2
- * curl 7.37.0
好吧,安上那个嗅探工具,再去find
- ①grep好像低点,不过先不升级,试试
- senrsl@senrsl-desktop:~$ grep --version
- grep (GNU grep) 2.16
- Copyright (C) 2014 Free Software Foundation, Inc.
- GPLv3+ 许可证: GNU 通用公共许可证第三版或更高版本 <http://gnu.org/licenses/gpl.html>。
- 这是自由软件: 您可自由更改并重新分发它。
- 在法律所允许的范围内,不附带任何担保条款。
- 作者 Mike Haertel 和 其余作者请参看 <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>。
- ②sed正好
- senrsl@senrsl-desktop:~$ sed --version
- sed (GNU sed) 4.2.2
- Copyright (C) 2012 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Written by Jay Fenlason, Tom Lord, Ken Pizzini,
- and Paolo Bonzini.
- GNU版sed主页: <http://www.gnu.org/software/sed/>。
- 使用GNU软件所需帮助文档: <http://www.gnu.org/gethelp/>。
- 将错误报告通过电子邮件发送到:<bug-sed@gnu.org>.
- 请务必将单词"sed"放在标题的某处。
- ③awk没找到怎么验证版本。。。。搜了半天好像是这样,也不确定
- senrsl@senrsl-desktop:~$ awk -W version
- mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
- compiled limits:
- max NF 32767
- sprintf buffer 2040
- 好吧,上面那个也先不管好了。
- ④nmap,这个没安装。。。。一查,是嗅探工具!!!
- ⑤dig 这个高点
- senrsl@senrsl-desktop:~$ dig version
- ; <<>> DiG 9.9.5-3-Ubuntu <<>> version
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7002
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
- ;; OPT PSEUDOSECTION:
- ; EDNS: version: 0, flags:; udp: 4096
- ;; QUESTION SECTION:
- ;version. IN A
- ;; AUTHORITY SECTION:
- . 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2014080401 1800 900 604800 86400
- ;; Query time: 159 msec
- ;; SERVER: 127.0.1.1#53(127.0.1.1)
- ;; WHEN: Tue Aug 05 09:59:34 CST 2014
- ;; MSG SIZE rcvd: 111
- ⑥curl 下android srouce 刚用了
- senrsl@senrsl-desktop:~$ curl --version
- curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
- Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
- Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
果然速度变得很慢而且不全是NO了。。。。
- senrsl@senrsl-desktop:~/下载/google-hosts-master/scripts$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
- Server: 8.8.8.8
- Address: 8.8.8.8#53
- Non-authoritative answer:
- _netblocks.google.com text = "v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ~all"
- Authoritative answers can be found from:
- senrsl@senrsl-desktop:~/下载/google-hosts-master/scripts$ ./find.sh 216.239.32 64.233.160 66.249.80 72.14.192 209.85.128 66.102 74.125 64.18 207.126.144 173.194
- IP LOSS TIME SSL
- 216.239.32.0 NO NO NO
- 216.239.32.1 NO NO NO
- 216.239.32.2 NO NO NO
- 216.239.32.3 NO NO NO
- 216.239.32.4 NO NO NO
- 216.239.32.5 NO NO NO
- 216.239.32.6 40% 207.667 *.google.com
- 216.239.32.7 NO NO NO
- 216.239.32.8 NO NO NO
- 216.239.32.9 NO NO NO
- 216.239.32.10 NO NO NO
- 216.239.32.11 NO NO NO
- 216.239.32.12 NO NO NO
- 216.239.32.13 NO NO NO
- 216.239.32.14 NO NO NO
- 216.239.32.15 NO NO NO
- 216.239.32.16 NO NO NO
- 216.239.32.17 NO NO NO
- 216.239.32.18 NO NO NO
- 216.239.32.19 NO NO NO
- 216.239.32.20 NO NO NO
- 216.239.32.21 NO NO NO
- 216.239.32.22 NO NO NO
- 216.239.32.23 NO NO NO
- 216.239.32.24 20% 281 *.google.com
- 216.239.32.25 NO NO NO
- 216.239.32.26 NO NO NO
- 216.239.32.27 0% 61.98 misc.google.com
- 216.239.32.28 20% 200.5 *.google.com
- 216.239.32.29 40% 196.667 *.google.com
- 216.239.32.30 NO NO NO
- 216.239.32.31 NO NO NO
- 216.239.32.32 NO NO NO
- 216.239.32.33 NO NO NO
- 216.239.32.34 60% 199 *.googleapis.com
- 216.239.32.35 NO NO NO
- 216.239.32.36 NO NO NO
- 216.239.32.37 0% 70.72 *.google.com
- 216.239.32.38 NO NO NO
- 216.239.32.39 40% 204 *.google.com
- 216.239.32.40 NO NO NO
- 216.239.32.41 NO NO NO
- 216.239.32.42 NO NO NO
- 216.239.32.43 NO NO NO
- 216.239.32.44 NO NO NO
- 216.239.32.45 NO NO NO
- 216.239.32.46 NO NO NO
- 216.239.32.47 NO NO NO
- 216.239.32.48 NO NO NO
- 216.239.32.49 NO NO NO
- 216.239.32.50 NO NO NO
- 216.239.32.51 NO NO NO
- 216.239.32.52 NO NO NO
- 216.239.32.53 NO NO NO
- 216.239.32.54 NO NO NO
- 216.239.32.55 50% 194 gexperiments1.com
- 216.239.32.56 60% 212 *.google.com
- 216.239.32.57 0% 61.26 *.google.com
- 216.239.32.58 NO NO NO
- 216.239.32.59 NO NO NO
- 216.239.32.60 NO NO NO
- 216.239.32.61 NO NO NO
- 216.239.32.62 NO NO NO
- 216.239.32.63 NO NO NO
- 216.239.32.64 NO NO NO
- 216.239.32.65 NO NO NO
- 216.239.32.66 NO NO NO
- 216.239.32.67 NO NO NO
- 216.239.32.68 NO NO NO
- 216.239.32.69 NO NO NO
- 216.239.32.70 NO NO NO
- 216.239.32.71 NO NO NO
- 216.239.32.72 20% 225.5 *.g-mms.com
- 216.239.32.73 NO NO NO
- 216.239.32.74 NO NO NO
重新折腾
Non-authoritative answer:
_netblocks.google.com text = "v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ~all"
senrsl@senrsl-desktop:~/tools/google-hosts-master/scripts$ ./find.sh 216.239.32 64.233.160 66.249.80 72.14.192 209.85.128 66.102 74.125 64.18 207.126.144 173.194
无意点开久未更新的博客,发现一个有趣的事情~

2014年08月11日10:27:30
跑了快一周了还没跑完,好吧,你赢了。。。。
--
senRsl
@Beijing TongZhou
2014年08月04日14:28:27
senRsl
@Beijing TongZhou
2014年08月04日14:28:27
没有评论 :
发表评论