Google Public DNS

Also known as: 8.8.8.8

On this page 8

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 methodAddress or hostnamePort
Classic DNS over IPv48.8.8.8 and 8.8.4.453 (UDP and TCP)
Classic DNS over IPv62001:4860:4860::8888 and 2001:4860:4860::884453 (UDP and TCP)
DNS over TLSdns.google853
DNS over HTTPSdns.google with the dns-query path443
JSON APIdns.google with the resolve path443
Google Public DNS endpoints

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.

ResolverPrimary addressDistinguishing trait
Google Public DNS8.8.8.8No filtering, ECS support, very wide reach
Cloudflare 1.1.1.11.1.1.1Privacy emphasis, no ECS by default
Quad99.9.9.9Blocks domains from threat intelligence feeds
ISP resolverAssigned by DHCPClose to the user, policy set by the provider
Self-hosted resolverLocal, for example Unbound or BINDFull control over logging and policy
Google Public DNS compared with other resolvers

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.

ScenarioHow it is usedReason
Troubleshooting resolutionQuery 8.8.8.8 directly with dig or nslookupSeparates local resolver faults from zone faults
Checking DNS propagationCompare answers with the authoritative serversShows what a large public cache currently holds
Fallback resolverSecondary entry in router or server settingsKeeps lookups working when the ISP resolver fails
Encrypted DNS on clientsDNS over HTTPS in browsers or the operating systemProtects queries on untrusted networks
Cache refresh after changesUse the Flush Cache tool on the service websiteShortens waiting after a record update
Common scenarios and why the resolver fits

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.

ConsiderationEffectRecommendation
Single-provider dependenceAll lookups rely on one operatorPair with a second provider or a local resolver
Split-horizon namesInternal names cannot resolveKeep an internal resolver for private zones
Captive portalsHotel or airport login pages may failAllow fallback to the network resolver
Encrypted DNS blockingSome networks block port 853Use DNS over HTTPS on port 443
LatencyDepends on distance to the nearest siteMeasure before switching
Practical considerations before adopting Google Public DNS

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.