https://github.com/txthinking/google-hosts
這個是經過用curl和nmap測試google ip段全部ip來找到可用的一個項目
而後再改下host,就能夠使用大部分google的服務了git
$ 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"
-q的意思是-querytypegithub
因此目前(2014/9/9)google的ip段是如下這些curl
216.239.32.0/19 64.233.160.0/19 66.249.80.0/20 72.14.192.0/18 209.85.128.0/17 66.102.0.0/20 74.125.0.0/16 64.18.0.0/20 207.126.144.0/20 173.194.0.0/16
能夠仿照google-hosts這個項目本身寫個腳原本測一下哪些ip是可用的測試