Google Public DNS is a free, globally distributed recursive DNS resolver operated by Google and reachable at the well-known addresses 8.8.8.8 and 8.8.4.4. In DNS, it acts as the resolver that a device or network queries instead of the one supplied by its internet service provider, translating domain names into IP addresses across the Internet.
Launched in December 2009, the service is one of the largest open resolvers in operation. It offers DNSSEC validation, encrypted transport through DNS over HTTPS and DNS over TLS, and a strong focus on availability through anycast routing to data centers on several continents.
How Google Public DNS resolves a query
Google Public DNS performs full recursive resolution on behalf of clients. When a stub resolver on a laptop asks for a name, the query reaches the nearest Google site through anycast, where the resolver either answers from its shared DNS cache or walks the hierarchy from the root name servers through top-level domain servers to the authoritative DNS servers for the zone.
Because millions of users query the same popular names, cache hit rates are high and many answers return without contacting authoritative servers. Each cached record is kept no longer than its time to live, so changes to records still follow normal DNS propagation behavior.
The service also applies defensive techniques against cache poisoning, including randomized source ports and query IDs, case randomization of query names and strict checking of responses. When the authoritative zone is signed, the resolver validates the DNSSEC chain of trust and returns SERVFAIL for answers that fail validation.
Service addresses and access protocols
Google Public DNS is reachable over IPv4, IPv6 and encrypted protocols. The table lists the standard endpoints that administrators configure.
| Access method | Address or hostname | Port |
|---|---|---|
| Classic DNS over IPv4 | 8.8.8.8 and 8.8.4.4 | 53 (UDP and TCP) |
| Classic DNS over IPv6 | 2001:4860:4860::8888 and 2001:4860:4860::8844 | 53 (UDP and TCP) |
| DNS over TLS | dns.google | 853 |
| DNS over HTTPS | dns.google with the dns-query path | 443 |
| JSON API | dns.google with the resolve path | 443 |
Configuring both addresses of a family provides redundancy at the client level, although anycast already spreads each address across many sites. Encrypted transports protect queries from on-path observation and tampering between the client and Google, but not from the resolver operator itself.
EDNS Client Subnet and content delivery
Google Public DNS supports EDNS Client Subnet (ECS), an extension that passes a truncated part of the client address to authoritative servers. Content delivery networks use this hint to return an edge server close to the user rather than close to the resolver.
The resolver sends ECS only to authoritative servers that appear to use it, and it truncates the address, typically to a /24 prefix for IPv4. This balances routing accuracy against privacy, a trade-off that some other public resolvers resolve differently by not sending ECS at all.
How it compares with other public resolvers
Several large operators offer public recursive DNS, and they differ mainly in filtering, privacy policy and ECS behavior rather than in basic resolution.
| Resolver | Primary address | Distinguishing trait |
|---|---|---|
| Google Public DNS | 8.8.8.8 | No filtering, ECS support, very wide reach |
| Cloudflare 1.1.1.1 | 1.1.1.1 | Privacy emphasis, no ECS by default |
| Quad9 | 9.9.9.9 | Blocks domains from threat intelligence feeds |
| ISP resolver | Assigned by DHCP | Close to the user, policy set by the provider |
| Self-hosted resolver | Local, for example Unbound or BIND | Full control over logging and policy |
Google Public DNS does not block malicious or adult domains by design. Organizations that need filtering usually combine it with a security gateway or choose a filtering resolver instead.
Typical uses of Google Public DNS
Administrators and developers use Google Public DNS for far more than home browsing. Its predictable addresses and stable behavior make it a common reference point in network operations.
| Scenario | How it is used | Reason |
|---|---|---|
| Troubleshooting resolution | Query 8.8.8.8 directly with dig or nslookup | Separates local resolver faults from zone faults |
| Checking DNS propagation | Compare answers with the authoritative servers | Shows what a large public cache currently holds |
| Fallback resolver | Secondary entry in router or server settings | Keeps lookups working when the ISP resolver fails |
| Encrypted DNS on clients | DNS over HTTPS in browsers or the operating system | Protects queries on untrusted networks |
| Cache refresh after changes | Use the Flush Cache tool on the service website | Shortens waiting after a record update |
In troubleshooting, a query to 8.8.8.8 that succeeds while the local resolver fails points to a local configuration or cache problem, whereas a failure at both suggests an issue in the zone itself, such as a broken delegation or an expired DNSSEC signature.
Privacy, logging and reliability considerations
Google publishes a specific privacy policy for the resolver. Temporary logs that include the full client IP address are deleted within 24 to 48 hours, while longer-term logs keep only coarse data such as city-level location and no full IP address.
| Consideration | Effect | Recommendation |
|---|---|---|
| Single-provider dependence | All lookups rely on one operator | Pair with a second provider or a local resolver |
| Split-horizon names | Internal names cannot resolve | Keep an internal resolver for private zones |
| Captive portals | Hotel or airport login pages may fail | Allow fallback to the network resolver |
| Encrypted DNS blocking | Some networks block port 853 | Use DNS over HTTPS on port 443 |
| Latency | Depends on distance to the nearest site | Measure before switching |
A common misconception is that switching resolvers always speeds up browsing. The gain depends on cache behavior and distance; an ISP resolver located inside the same network can be faster, so measurement beats assumption.
Put simply
Every time you type a website name, your device has to look up the number behind that name, much like finding a phone number in a directory. Google Public DNS is a free directory service that anyone can use instead of the one their internet provider supplies.
Setting a device to use 8.8.8.8 simply means asking Google for those lookups. It is reliable and widely available, but it also means trusting Google with a record of which sites you look up.
In practice
A small office of 25 people notices that websites sometimes fail to load because its ISP resolver times out during busy hours. The network administrator configures the office router to hand out 8.8.8.8 and 8.8.4.4 to clients while keeping an internal resolver for the private company zone used by file servers and printers.
For staff laptops used on public Wi-Fi, the administrator enables DNS over HTTPS to dns.google in the operating system settings. Over the following month, name-resolution failures disappear from support tickets, internal names keep working through the conditional forwarding rule, and lookups made outside the office are encrypted against local eavesdropping.