Domain IP Lookup

Three layers share the name "DNS server"

Stub resolver

your own device

Recursive resolver

ISP, router, or 1.1.1.1

Authoritative

the domain's own DNS

DNS Fundamentals

What Is 8.8.8.8? The Address Everyone Types and Few People Understand

7 min readBy Domain IP Lookup Team

Some addresses you never forget. I have typed 8.8.8.8 into routers in office cupboards, into laptops on hotel Wi-Fi, into servers at two in the morning while a client waited on the phone. It is the number network people reach for when name resolution breaks, and it works often enough that many of them set it once and never ask what they just pointed their traffic at.

So let us ask. 8.8.8.8 is not a website, and it is not a server you visit. It is the front door of Google Public DNS, a recursive resolver service that Google runs for anyone to use, free of charge. Its sibling address, 8.8.4.4, opens the same door.

A resolver does the asking for you

Every device needs a recursive resolver. When you type a name like example.com, something has to chase down the answer: ask the root, ask the top-level servers, ask the domain's own nameservers, and bring back an IP address. That chasing is the resolver's whole job. What a DNS server is splits the roles apart properly, because 'DNS server' gets used for three different jobs.

By default you use your internet provider's resolver, assigned silently when you connect. Point your settings at 8.8.8.8 instead and the chasing changes hands: your queries now go to Google's service, and Google's machines do the walking and the caching. The websites you visit never see the difference. Only the middleman changed.

One address, many cities: how anycast works

Here is the part that surprises people. There is no single machine with the address 8.8.8.8. The same address is announced from Google facilities all over the world, a technique called anycast. Your query simply lands at whichever site your network's routing finds nearest and cheapest to reach — which is usually, though not always, the geographically closest one.

Anycast buys two things. The first is speed: a query answered on your own continent skips the long haul to another one. The second is resilience. If a site fails or comes under attack, routing shifts and the same address starts answering somewhere else. Nobody has to change a setting, and most users never notice an outage that, on a single-machine service, would have been very visible indeed.

The long versions: IPv6 addresses

Everything so far has been IPv4. The same service answers at IPv6 addresses too — 2001:4860:4860::8888 and its twin ending ::8844 — which pull the same memory trick inside a much longer string. On an IPv6 connection, setting only the famous four eights can leave a gap: some devices then quietly use the provider's IPv6 resolver alongside, splitting your lookups between two services and confusing every comparison you run. If a settings screen offers both families of address, fill both, or you have only done half the job you thought you did.

Why this address became the famous one

Partly it is the number itself: four eights are impossible to misremember, and the service's second address swaps one of them for a four. Partly it is habit. For years, support scripts and forum answers have used 8.8.8.8 as the test address — ping it, and if it answers, your connection works and the fault is probably DNS. The address got famous for being a resolver, then got used as a resolver because it was famous. I have met administrators who set it on every machine they own and could not have told you whose service it was. It was just 'the DNS address', the way a photocopier becomes a Xerox.

What the service learns about you

A resolver sees a lot. Every lookup you make reveals a name you were interested in and the address you made it from. Switching to 8.8.8.8 does not remove that exposure; it moves it, from your provider's logs to Google's. Anyone choosing a resolver is really choosing whose hands that record sits in, and it is worth being honest with yourself about that.

Google publishes how it handles this data, and the broad shape is this: full query logs are kept only temporarily, for troubleshooting and security work, and the data retained for longer is aggregated and stripped of the details that tie queries to a person. Read the current policy before you rely on my summary, though. Policies change, and a summary is never the document.

The encrypted doors: DoH and DoT

The classic way of reaching 8.8.8.8 is plain DNS, which travels unencrypted: anyone along the path can read your queries and, in principle, tamper with the answers. The service also answers over encrypted transports — DNS over HTTPS and DNS over TLS — which wrap the same questions so the path can no longer see them. DNS over HTTPS explained walks through how that wrapping works and what it changes.

Encryption changes who can watch, not who answers. The resolver still sees everything; the coffee-shop network and every hop between you and Google no longer do. Whether that trade suits you depends on which of those watchers worries you more.

The bouncer behind the answers: validation

There is a second job the service does that nobody puts on the box. For domains protected with DNSSEC — cryptographic signatures that prove an answer really came from the domain's own servers — Google's resolvers check those signatures on your behalf. If the check fails, you do not receive the forged or broken answer; you receive an error instead. From your chair that can look like a website vanishing at random, when in fact the resolver caught a mismatch between the domain's signatures and its records: usually the site's own misconfiguration, occasionally something worse being refused at the door.

This matters for the address's day job as a troubleshooter. If 8.8.8.8 reports that a name fails while your provider's resolver happily returns an address for it, validation is a prime suspect: the public resolver is checking signatures the laxer one ignores. The site is not selectively down. It is selectively verified — and knowing that turns a baffling inconsistency into a diagnosis.

The honest trade-offs

I recommend this service often, but never automatically. What you get, and what you give up, looks like this:

  • Consistency: the same resolver behaves the same way on your home network, your phone and a foreign hotel network, which removes a whole class of 'works here, fails there' mysteries.
  • Maintenance: big public resolvers are patched and watched around the clock. A neglected provider resolver, and some of them are very neglected, may not be.
  • Centralisation: your lookups join one of the largest query streams on earth, held by an advertising company. The published policy is restrained, but the concentration itself is a fair thing to dislike.
  • Local answers: some content networks guess your location from your resolver's location. A global anycast resolver can occasionally earn you a farther content server than your provider's local one would have.
  • Filtering: if your provider's resolver quietly blocks known malicious domains, a neutral public resolver will not do that job for you.

Find out what you are using now

Curious whether a device already points at 8.8.8.8? Check before you change anything:

  1. Check the device's DNS settings

    Open the network settings for the connection you are using and look at the DNS server fields. If they are filled in automatically, the resolver came from your router or provider, and this device has no opinion of its own.

  2. Check the router too

    Many home routers hand out their own address and forward queries upstream themselves. The resolver doing the real work may live there, not on your device, which is why changing one laptop sometimes changes nothing.

  3. Ask the system directly

    Run a lookup with a command-line tool and read the server line in its output, or compare answers in the DNS lookup tool. A query answered by Google's public service will say so plainly.

  4. Change it deliberately, if you change it

    How to change your DNS server covers the settings on each platform, including entering 8.8.8.8 as the first address and 8.8.4.4 as the second, so a failure of one path does not take your lookups down.

About that ping test

Because the address is famous, it has picked up a second career as the thing people ping to test whether “the internet works”. Treat that ritual with care. A ping proves a packet can reach something that answers pings. It says nothing about whether name resolution works — the very thing this address exists to do. I have watched people ping it successfully, declare the connection healthy, and then sit baffled in front of a browser that could not resolve a single name.

The cleaner test is the one the service was built for: ask it a question. Look up a name you trust through 8.8.8.8, then through your usual resolver, and compare the answers. Agreement tells you resolution is healthy. Disagreement tells you where to dig. Reachability is a doorbell; a lookup is a conversation, and only one of them tests what you actually care about.

That is all 8.8.8.8 is: a very good, very public middleman. Knowing what a middleman does — and what it sees — is the difference between configuring a network and just typing in a number you were given.

Need to check a domain's public DNS addresses? Use the Domain IP Lookup tool.

google dnspublic resolverdns basics

Frequently asked questions