Google hosts generator
What | How | Must | Contributing | License
This project provides some tools to help you find google IP.
getssl.shget IP detail
$ cd google-hosts/scriptsget detail of 192.168.1.1
$ ./getssl.sh 192.168.1.1
find.shwrapper of getssl.sh, get IP detail from CIDR
$ cd google-hosts/scriptsfind IP from 192.168.1.1/24
$ ./find.sh 192.168.1.1/24
filter.shfilter IP from output directory(generated by find.sh) for some domain
$ cd google-hosts/scriptsfilter IP for *.google.com
$ ./filter.sh *.google.com
filter IP for mail.google.com
$ ./filter.sh mail.google.com
use.shuse IP for some domain and update hosts.all
$ cd google-hosts/scriptsuse 192.168.1.1 for *.google.com
$ ./use.sh *.google.com 192.168.1.1
use 192.168.1.1 for mail.google.com
$ ./use.sh mail.google.com 192.168.1.1
select.shrun filter.sh, use.sh, use the best IP for domains in hosts.all
$ cd google-hosts/scripts $ ./select.sh
apply.shupdate ../hosts from hosts.all
$ cd google-hosts/scripts $ ./apply.sh
auto.shfind CIDR from a DNS and run find.sh, select.sh, apply.sh
$ cd google-hosts/scripts $ ./auto.sh DNS # DNS is like 8.8.8.8, but you should try DNS in diffrent countries.
Explaination of output
| IP | LOSS | TIME | SSL | | --- | ----------- | --------- | ---------- | | IP | packet loss | ping time | ssl domain |
https
A project by txthinking
Licensed under The MIT License