google-hosts provides scripts to probe IP addresses, filter candidates for Google domains, and maintain a hosts file. It helps find working Google IPs for local hosts mapping.
Overview
google-hosts is a Google hosts generator. It provides tools to find Google IP addresses and maintain domain-to-IP mappings used in a hosts file workflow.
Scripts under google-hosts/scripts implement the pipeline. getssl.sh fetches SSL detail for a single IP; find.sh scans a CIDR via getssl.sh; filter.sh narrows stored results for a domain suffix or hostname; use.sh records a chosen IP for a domain in hosts.all; select.sh automates filtering and picking best IPs; apply.sh writes the aggregated hosts.all into a hosts file; auto.sh takes a DNS server, discovers CIDRs, and chains find, select, and apply.
Output tables document columns for IP, packet loss, ping time, and SSL domain seen during probes. Results should be used with Google DNS, OpenDNS, or similar resolvers and HTTPS.
It is a maintainer-operated toolkit rather than a long-running service: you run shell steps locally to refresh IP lists when network paths to Google services change.
Key features
- IP SSL detail probing
- CIDR scan wrapper
- Domain-based IP filtering
- hosts.all aggregation
- Automated best-IP selection
- Hosts file apply step
- DNS-driven auto pipeline
- Loss and latency probe output
Use cases
- Refreshing Google domain IP lists
- Testing candidate IPs for Google hosts
- Maintaining a local hosts override file
- Batch scanning address ranges