google-hosts is a shell script toolkit that generates and maintains a hosts file with working Google IP addresses.
The project solves the problem of accessing Google services when standard DNS resolution fails or is blocked. It works by discovering Google IP addresses through network scanning, testing their connectivity and SSL certificate validity, and then automatically updating the system hosts file with the best-performing addresses. The toolkit includes scripts to scan CIDR ranges for active IPs, filter results by domain, evaluate connection quality through ping and packet loss metrics, and apply the discovered addresses to the hosts file.
This tool is suited for users who need reliable access to Google services in environments where standard connectivity is problematic. The workflow supports both manual discovery and fully automated operation: users can scan specific DNS servers across different geographic regions, evaluate IP performance metrics including latency and packet loss, and selectively apply working addresses to their hosts configuration. The project emphasizes using HTTPS connections and international Google endpoints to avoid country-specific redirects.
Development activity shows consistent maintenance with regular updates to the core scripts and documentation. The project accepts community contributions and maintains clear coding standards for submitted changes.