explaingit

googlehosts/hosts

Analysis updated 2026-06-21

20,651Audience · generalComplexity · 1/5LicenseSetup · easy

TLDR

A hosts file that maps Google and related service domains to working IP addresses for users in China who cannot access Google normally. The project is now abandoned and no longer maintained.

Mindmap

mindmap
  root((repo))
    What it does
      Maps Google domains
      Bypasses DNS blocks
      Auto-generated file
    Usage
      Edit hosts file
      Windows support
      macOS support
    Limitations
      Project abandoned
      No commercial use
      IPs may be stale
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add Google domain mappings to your hosts file so you can access Google services from a restricted network.

USE CASE 2

Use as a reference for which IPs Google services may resolve to from accessible regions.

How does it compare?

googlehosts/hostswasmerio/wasmervulhub/vulhub
Stars20,65120,65120,648
LanguageRustDockerfile
Setup difficultyeasymoderateeasy
Complexity1/54/52/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Project is abandoned, the mapped IP addresses may no longer work. Verify entries before use.

Copying and redistribution are allowed, but commercial use is prohibited under the modified Hosts license, code in the repository is separately under MIT.

In plain English

This repository provides a hosts file intended to help users in China access Google and related services by mapping their domain names to working IP addresses. The hosts file and related content are automatically generated by scripts. The project notes that it has been abandoned and that the googlehosts.org domain is no longer under their control and may be used for phishing. Mirrors of the repository are available at two external locations listed in the description. The project is based on a modified Hosts license with an added SATA protocol clause, which allows copying and redistribution but prohibits commercial use. All code in the repository is under the MIT License.

Copy-paste prompts

Prompt 1
How do I apply a hosts file on Windows 10 to access Google using the googlehosts entries?
Prompt 2
I want to update my Mac hosts file with Google IP mappings. What is the exact process to edit and flush DNS?
Prompt 3
What is a hosts file and how does adding Google IP entries to it help bypass DNS-based blocks?

Frequently asked questions

What is hosts?

A hosts file that maps Google and related service domains to working IP addresses for users in China who cannot access Google normally. The project is now abandoned and no longer maintained.

What license does hosts use?

Copying and redistribution are allowed, but commercial use is prohibited under the modified Hosts license, code in the repository is separately under MIT.

How hard is hosts to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is hosts for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub googlehosts on gitmyhub

Verify against the repo before relying on details.