東川印記

一本東川,笑看爭龍斗虎;寰茫兦者,度橫佰昧人生。

获取google可用地址

2014年8月25日星期一



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

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

  1. senrsl@senrsl-desktop:~/下载$ nslookup
  2. > server 8.8.8.8
  3. Default server: 8.8.8.8
  4. Address: 8.8.8.8#53
  5. > set vc
  6. > encrypted.google.com
  7. ;; connection timed out; no servers could be reached
  8. >
也连不上了。。。。
方法三:Google IP 地址范围
    官方提供的这个地址https://support.google.com/a/answer/60764?hl=zh-Hans
  1. nslookup -q=TXT _netblocks.google.com 8.8.8.8
  2. nslookup -q=TXT _netblocks2.google.com 8.8.8.8
  3. nslookup -q=TXT _netblocks3.google.com 8.8.8.8
看看效果
  1. senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
  2. ;; connection timed out; no servers could be reached
  3. senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks2.google.com 8.8.8.8
  4. Server:        8.8.8.8
  5. Address:    8.8.8.8#53
  6. Non-authoritative answer:
  7. _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"
  8. Authoritative answers can be found from:
  9. senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks3.google.com 8.8.8.8
  10. Server:        8.8.8.8
  11. Address:    8.8.8.8#53
  12. Non-authoritative answer:
  13. _netblocks3.google.com    text = "v=spf1 ~all"
  14. Authoritative answers can be found from:
  15. senrsl@senrsl-desktop:~/下载$
本地DNS服务器
  1. senrsl@senrsl-desktop:~/下载$ nslookup g.cn
  2. Server:        127.0.1.1
  3. Address:    127.0.1.1#53
  4. Non-authoritative answer:
  5. Name:    g.cn
  6. Address: 203.208.48.144
  7. Name:    g.cn
  8. Address: 203.208.48.147
  9. Name:    g.cn
  10. Address: 203.208.48.148
  11. Name:    g.cn
  12. Address: 203.208.48.146
  13. Name:    g.cn
  14. Address: 203.208.48.145
  15. senrsl@senrsl-desktop:~/下载$ nslookup g.tw
  16. Server:        127.0.1.1
  17. Address:    127.0.1.1#53
  18. Non-authoritative answer:
  19. Name:    g.tw
  20. Address: 211.98.71.195
  21. senrsl@senrsl-desktop:~/下载$ nslookup g.cn ns1.google.com
  22. Server:        ns1.google.com
  23. Address:    216.239.32.10#53
  24. Name:    g.cn
  25. Address: 203.208.46.178
  26. Name:    g.cn
  27. Address: 203.208.46.179
  28. Name:    g.cn
  29. Address: 203.208.46.177
  30. Name:    g.cn
  31. Address: 203.208.46.176
  32. Name:    g.cn
  33. Address: 203.208.46.180
  34. senrsl@senrsl-desktop:~/下载$ nslookup -vc g.cn 8.8.8.8
  35. Server:        8.8.8.8
  36. Address:    8.8.8.8#53
  37. Non-authoritative answer:
  38. Name:    g.cn
  39. Address: 203.208.37.19
  40. Name:    g.cn
  41. Address: 203.208.37.18
  42. Name:    g.cn
  43. Address: 203.208.37.16
  44. Name:    g.cn
  45. Address: 203.208.37.20
  46. Name:    g.cn
  47. Address: 203.208.37.17
  48. senrsl@senrsl-desktop:~/下载$
可以使用新浪的IP数据库查看IP地理位置和所有者的信息,比如得到的IP为203.208.46.146,那么可以用
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地址段
  1. senrsl@senrsl-desktop:~/下载$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
  2. Server:        8.8.8.8
  3. Address:    8.8.8.8#53
  4. Non-authoritative answer:
  5. _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"
  6. Authoritative answers can be found from:
  7. senrsl@senrsl-desktop:~/下载$
然后,折腾这个开源的工具google-hosts-master
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 大半夜的那个开源的一个管理去答复我,说是环境问题,在被窝里一想,还真是有可能。
早上起来挨个版本验证
  1. ### 脚本依赖
  2. * grep v2.20
  3. * sed v4.2.2
  4. * awk v4.1.1
  5. * nmap v6.46
  6. * dig v9.9.2-P2
  7. * curl 7.37.0
挨个取结果
  1. ①grep好像低点,不过先不升级,试试
  2. senrsl@senrsl-desktop:~$ grep --version
  3. grep (GNU grep) 2.16
  4. Copyright (C) 2014 Free Software Foundation, Inc.
  5. GPLv3+ 许可证: GNU 通用公共许可证第三版或更高版本 <http://gnu.org/licenses/gpl.html>
  6. 这是自由软件: 您可自由更改并重新分发它。
  7. 在法律所允许的范围内,不附带任何担保条款。
  8. 作者 Mike Haertel 和 其余作者请参看 <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>
  9. ②sed正好
  10. senrsl@senrsl-desktop:~$ sed --version
  11. sed (GNU sed) 4.2.2
  12. Copyright (C) 2012 Free Software Foundation, Inc.
  13. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
  14. This is free software: you are free to change and redistribute it.
  15. There is NO WARRANTY, to the extent permitted by law.
  16. Written by Jay Fenlason, Tom Lord, Ken Pizzini,
  17. and Paolo Bonzini.
  18. GNU版sed主页: <http://www.gnu.org/software/sed/>
  19. 使用GNU软件所需帮助文档: <http://www.gnu.org/gethelp/>
  20. 将错误报告通过电子邮件发送到:<bug-sed@gnu.org>.
  21. 请务必将单词"sed"放在标题的某处。
  22. ③awk没找到怎么验证版本。。。。搜了半天好像是这样,也不确定
  23. senrsl@senrsl-desktop:~$ awk -W version
  24. mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
  25. compiled limits:
  26. max NF             32767
  27. sprintf buffer      2040
  28. 好吧,上面那个也先不管好了。
  29. ④nmap,这个没安装。。。。一查,是嗅探工具!!!
  30. ⑤dig 这个高点
  31. senrsl@senrsl-desktop:~$ dig version
  32. ; <<>> DiG 9.9.5-3-Ubuntu <<>> version
  33. ;; global options: +cmd
  34. ;; Got answer:
  35. ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7002
  36. ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
  37. ;; OPT PSEUDOSECTION:
  38. ; EDNS: version: 0, flags:; udp: 4096
  39. ;; QUESTION SECTION:
  40. ;version.            IN    A
  41. ;; AUTHORITY SECTION:
  42. .            10800    IN    SOA    a.root-servers.net. nstld.verisign-grs.com. 2014080401 1800 900 604800 86400
  43. ;; Query time: 159 msec
  44. ;; SERVER: 127.0.1.1#53(127.0.1.1)
  45. ;; WHEN: Tue Aug 05 09:59:34 CST 2014
  46. ;; MSG SIZE  rcvd: 111
  47. ⑥curl 下android srouce 刚用了
  48. senrsl@senrsl-desktop:~$ curl --version
  49. 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
  50. Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
  51. Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
好吧,安上那个嗅探工具,再去find
  1. senrsl@senrsl-desktop:~/下载/google-hosts-master/scripts$ nslookup -q=TXT _netblocks.google.com 8.8.8.8
  2. Server:        8.8.8.8
  3. Address:    8.8.8.8#53
  4. Non-authoritative answer:
  5. _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"
  6. Authoritative answers can be found from:
  7. 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
  8. IP    LOSS    TIME    SSL
  9. 216.239.32.0    NO    NO    NO
  10. 216.239.32.1    NO    NO    NO
  11. 216.239.32.2    NO    NO    NO
  12. 216.239.32.3    NO    NO    NO
  13. 216.239.32.4    NO    NO    NO
  14. 216.239.32.5    NO    NO    NO
  15. 216.239.32.6    40%    207.667    *.google.com
  16. 216.239.32.7    NO    NO    NO
  17. 216.239.32.8    NO    NO    NO
  18. 216.239.32.9    NO    NO    NO
  19. 216.239.32.10    NO    NO    NO
  20. 216.239.32.11    NO    NO    NO
  21. 216.239.32.12    NO    NO    NO
  22. 216.239.32.13    NO    NO    NO
  23. 216.239.32.14    NO    NO    NO
  24. 216.239.32.15    NO    NO    NO
  25. 216.239.32.16    NO    NO    NO
  26. 216.239.32.17    NO    NO    NO
  27. 216.239.32.18    NO    NO    NO
  28. 216.239.32.19    NO    NO    NO
  29. 216.239.32.20    NO    NO    NO
  30. 216.239.32.21    NO    NO    NO
  31. 216.239.32.22    NO    NO    NO
  32. 216.239.32.23    NO    NO    NO
  33. 216.239.32.24    20%    281    *.google.com
  34. 216.239.32.25    NO    NO    NO
  35. 216.239.32.26    NO    NO    NO
  36. 216.239.32.27    0%    61.98    misc.google.com
  37. 216.239.32.28    20%    200.5    *.google.com
  38. 216.239.32.29    40%    196.667    *.google.com
  39. 216.239.32.30    NO    NO    NO
  40. 216.239.32.31    NO    NO    NO
  41. 216.239.32.32    NO    NO    NO
  42. 216.239.32.33    NO    NO    NO
  43. 216.239.32.34    60%    199    *.googleapis.com
  44. 216.239.32.35    NO    NO    NO
  45. 216.239.32.36    NO    NO    NO
  46. 216.239.32.37    0%    70.72    *.google.com
  47. 216.239.32.38    NO    NO    NO
  48. 216.239.32.39    40%    204    *.google.com
  49. 216.239.32.40    NO    NO    NO
  50. 216.239.32.41    NO    NO    NO
  51. 216.239.32.42    NO    NO    NO
  52. 216.239.32.43    NO    NO    NO
  53. 216.239.32.44    NO    NO    NO
  54. 216.239.32.45    NO    NO    NO
  55. 216.239.32.46    NO    NO    NO
  56. 216.239.32.47    NO    NO    NO
  57. 216.239.32.48    NO    NO    NO
  58. 216.239.32.49    NO    NO    NO
  59. 216.239.32.50    NO    NO    NO
  60. 216.239.32.51    NO    NO    NO
  61. 216.239.32.52    NO    NO    NO
  62. 216.239.32.53    NO    NO    NO
  63. 216.239.32.54    NO    NO    NO
  64. 216.239.32.55    50%    194    gexperiments1.com
  65. 216.239.32.56    60%    212    *.google.com
  66. 216.239.32.57    0%    61.26    *.google.com
  67. 216.239.32.58    NO    NO    NO
  68. 216.239.32.59    NO    NO    NO
  69. 216.239.32.60    NO    NO    NO
  70. 216.239.32.61    NO    NO    NO
  71. 216.239.32.62    NO    NO    NO
  72. 216.239.32.63    NO    NO    NO
  73. 216.239.32.64    NO    NO    NO
  74. 216.239.32.65    NO    NO    NO
  75. 216.239.32.66    NO    NO    NO
  76. 216.239.32.67    NO    NO    NO
  77. 216.239.32.68    NO    NO    NO
  78. 216.239.32.69    NO    NO    NO
  79. 216.239.32.70    NO    NO    NO
  80. 216.239.32.71    NO    NO    NO
  81. 216.239.32.72    20%    225.5    *.g-mms.com
  82. 216.239.32.73    NO    NO    NO
  83. 216.239.32.74    NO    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

没有评论 :

发表评论