Google DNS: 8.8.8.8, 8.8.4.4, IPv6 Addresses & Setup

Key takeaway

Google's public DNS servers are 8.8.8.8 and 8.8.4.4 for IPv4, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6. The service is called Google Public DNS. It's free, needs no account, validates DNSSEC and, apart from rare security or legal cases, doesn't block anything. For encrypted DNS, the DoT hostname is dns.google (use it as Android's Private DNS) and the DoH URL is https://dns.google/dns-query. Set the addresses on your router to cover every device, then confirm the switch with nslookup -type=TXT o-o.myaddr.l.google.com.

Google DNS servers 8.8.8.8 and 8.8.4.4 with IPv6 addresses and dns.google DoH/DoT endpoints
Google DNS servers 8.8.8.8 and 8.8.4.4 with IPv6 addresses and dns.google DoH/DoT endpoints
Start reading
  1. What Is Google Public DNS?
  2. Google DNS Server Addresses (IPv4 and IPv6)
  3. IPv6 DNS Addresses: Google, Cloudflare, Quad9 and OpenDNS
  4. Google DNS64 Addresses for IPv6-Only Networks
  5. DNS over HTTPS, DNS over TLS and the JSON API
  6. Google DNS Privacy: What It Logs
  7. Does Google DNS Block Anything?
  8. Google DNS vs Cloudflare vs Quad9: Our Speed Test
  9. How to Set Up Google DNS (8.8.8.8)
  10. How to Check You're Using Google DNS
  11. 8.8.8.8 Not Working? Common Causes
  12. Frequently Asked Questions

What Is Google Public DNS?

Google DNS, officially Google Public DNS, is a free DNS resolver that Google has run since December 2009. A resolver is the server your device asks to turn a domain like github.com into an IP address. Your ISP gives you its own resolver by default; Google's is a public alternative anyone can use by entering 8.8.8.8 in their network settings.

The addresses are easy to remember on purpose, and they're among the most-used DNS servers on the internet. Google says it doesn't use personal information from the service to target ads, and it publishes exactly what it logs (see the privacy section below).

Is Google the fastest DNS on your connection? Test it

Google DNS Server Addresses (IPv4 and IPv6)

Enter these in any DNS settings field. Use both addresses: the second is the fallback if your device can't reach the first. To query Google directly from a terminal, use the commands below the table.

SettingIPv4IPv6
Preferred / primary DNS8.8.8.82001:4860:4860::8888
Alternate / secondary DNS8.8.4.42001:4860:4860::8844
bash
# Ask Google DNS directly (macOS, Linux, or Windows with BIND tools)
dig @8.8.8.8 dnsrobot.net A +short

# Same over IPv6
dig @2001:4860:4860::8888 dnsrobot.net A +short

# Windows built-in equivalent
nslookup dnsrobot.net 8.8.8.8

Both addresses are anycast: Google announces them from data centres around the world, and your query goes to the nearest one on the network. 8.8.8.8 and 8.8.4.4 are equal; neither is a slower backup server. Small speed differences between them, like the ones in our benchmark below, come down to routing on the day.

If your connection has IPv6, add the IPv6 pair too. Otherwise your device can keep using the IPv6 DNS server your ISP hands out and quietly bypass Google. Some routers and older devices reject the short :: form; for those, Google gives the full form 2001:4860:4860:0:0:0:0:8888 and 2001:4860:4860:0:0:0:0:8844 (Google Public DNS).

IPv6 DNS Addresses: Google, Cloudflare, Quad9 and OpenDNS

If you're filling in IPv6 DNS fields, these are the pairs for the four big public resolvers. Each one answered our test lookup over IPv6 on 26 October 2026:

ProviderIPv6 primaryIPv6 secondaryIPv4 pair
Google Public DNS2001:4860:4860::88882001:4860:4860::88448.8.8.8, 8.8.4.4
Cloudflare2606:4700:4700::11112606:4700:4700::10011.1.1.1, 1.0.0.1
Quad9 (blocks malicious domains)2620:fe::fe2620:fe::99.9.9.9, 149.112.112.112
OpenDNS (blocks phishing)2620:119:35::352620:119:53::53208.67.222.222, 208.67.220.220

Use both addresses from one provider rather than mixing providers, so every lookup gets the same filtering and privacy rules.

IPv6 isn't faster in itself. From our Jio home line in India, Google answered in a median of 32 ms over IPv6 and 33 ms over IPv4 (15 cached lookups each, 26 October 2026), and Cloudflare in 30 and 29 ms. Add the IPv6 pair so your device doesn't keep using your ISP's IPv6 DNS server, not for speed.

Google DNS64 Addresses for IPv6-Only Networks

Google also runs a DNS64 service. On a network that has only IPv6, it invents IPv6 addresses for sites that only have IPv4, so a NAT64 gateway can translate the traffic. You only need this if you run an IPv6-only network with NAT64 using the well-known 64:ff9b::/96 prefix.

ServiceAddress 1Address 2
Google Public DNS642001:4860:4860::64642001:4860:4860::64

DNS over HTTPS, DNS over TLS and the JSON API

Plain DNS on port 53 isn't encrypted, so your ISP and anyone else on the path can read the names you look up. Google Public DNS also answers over encrypted protocols:

  • DNS over HTTPS (DoH): https://dns.google/dns-query. Chrome and Edge use it when you pick Google in their secure DNS setting; Firefox doesn't list Google, so choose Custom there and paste the URL.
  • DNS over TLS (DoT): hostname dns.google on port 853. This is what you type into Android's Private DNS setting.
  • JSON API: https://dns.google/resolve?name=example.com&type=A returns the answer as JSON, which is handy in scripts and for quick checks in a browser.
bash
# Google's JSON API: works with plain curl
curl -s 'https://dns.google/resolve?name=dnsrobot.net&type=A'
# {"Status":0, ... "Answer":[{"name":"dnsrobot.net.","type":1,"TTL":300,"data":"172.67.150.248"}, ...],
#  "Comment":"Response from 108.162.193.236."}

When Google fetched the answer fresh, the Comment field names the authoritative server it asked; answers served from Google's cache often have no Comment. Here it's one of Cloudflare's nameservers, because dnsrobot.net's DNS is hosted on Cloudflare.

Google DNS Privacy: What It Logs

Google sets out its logging in the Google Public DNS privacy page. It keeps two kinds of logs:

  • Temporary logs hold your full IP address and the query. They're deleted within 24 to 48 hours, except data Google keeps longer to deal with a specific security or abuse problem.
  • Permanent logs keep a sample of queries with the IP address removed. In its place they store a city- or region-level location, alongside details such as your network's ASN, the name looked up and the record type.
  • Google says it doesn't combine these logs with personal information from your Google account or other Google services, except to deal with security and abuse.
  • EDNS Client Subnet (ECS): Google passes the first 24 bits of your IPv4 address (56 bits for IPv6), or fewer, to the website's DNS servers when they support ECS. That helps CDNs send you to a nearby server. Cloudflare's 1.1.1.1 doesn't do this.

Google's logging is lighter than many ISP resolvers', but heavier than 1.1.1.1's: Cloudflare says it doesn't store your IP address on disk (apart from a tiny random packet sample for troubleshooting) and deletes its truncated logs within 25 hours. Neither service hides your lookups from your ISP unless you use DoH or DoT.

Does Google DNS Block Anything?

No. Google says Google Public DNS doesn't block or filter domains of any kind, except in rare security or legal cases. It does validate DNSSEC, so a domain with broken signatures fails with SERVFAIL instead of returning an answer that might be forged. If you want filtering, use a resolver built for it:

ProviderPrimarySecondaryFiltering
Google Public DNS8.8.8.88.8.4.4None
Cloudflare1.1.1.11.0.0.1None
Cloudflare for Families1.1.1.31.0.0.3Malware and adult content
Quad99.9.9.9149.112.112.112Malicious domains
OpenDNS FamilyShield208.67.222.123208.67.220.123Adult content (preset)

Google DNS vs Cloudflare vs Quad9: Our Speed Test

Is 8.8.8.8 faster than 1.1.1.1? It depends on your network, so we measured. On 4 October 2026 we sent each resolver 15 lookups of a popular name (cached) and 15 lookups of brand-new names (uncached) from two places in India: a Jio home connection in Andhra Pradesh, and our web server in a Navi Mumbai data centre. The table shows the median response time.

ResolverHome line: cachedHome line: uncachedData centre: cachedData centre: uncached
Cloudflare 1.1.1.126 ms148 ms3 ms71 ms
Cloudflare 1.0.0.126 ms146 ms2 ms136 ms
Google 8.8.8.853 ms116 ms3 ms64 ms
Google 8.8.4.431 ms121 ms3 ms64 ms
Quad9 9.9.9.937 ms330 ms2 ms269 ms

Globally, DNSPerf's resolver ranking (last 30 days, read on 4 October 2026) has 1.1.1.1 slightly ahead, averaging 13.63 ms against 19.47 ms for Google and 21.62 ms for Quad9. Our numbers from India show why an average can mislead.

Google won the uncached test on both networks (116–121 ms on the home line, 64 ms from the data centre), which is what you feel when you visit a site for the first time. Cloudflare answered cached names faster on the home line (26 ms against 31 ms for 8.8.4.4 and 53 ms for 8.8.8.8). From the data centre, every resolver answered cached names in 2–3 ms.

So neither one is "the fastest DNS" everywhere. The gap between them is a few tens of milliseconds, either way. That's less than the gap between a good public resolver and a slow ISP one.

To see the ranking for your own connection, run DNS Robot's DNS Speed Test: it times Google, Cloudflare, Quad9 and nine other public resolvers over DNS-over-HTTPS from your browser, ranks them by median cached lookup time, and compares the winner with your current DNS on brand-new names.

How to Set Up Google DNS (8.8.8.8)

Setting it on your router covers every device on your Wi-Fi. Set it on a device instead when you can't change the router, or for laptops and phones that leave home.

On Your Router

  • Sign in to the router's admin page, usually 192.168.1.1 or 192.168.0.1. Our router login guide has the default address and password for 80+ routers and internet providers.
  • Open the Internet, WAN or DHCP settings and find the DNS fields.
  • Switch DNS from automatic to manual and enter 8.8.8.8 and 8.8.4.4. If there's an IPv6 section, enter 2001:4860:4860::8888 and 2001:4860:4860::8844.
  • Save, then reconnect your devices (or restart the router) so they pick up the change.

On Windows 11 and 10

  • Open Settings → Network & internet, choose Wi-Fi or Ethernet, then click your connection.
  • Next to DNS server assignment, click Edit and switch to Manual.
  • Under IPv4, enter 8.8.8.8 (preferred) and 8.8.4.4 (alternate). Windows 11 lets you set DNS over HTTPS to On (automatic template) for each one.
  • Under IPv6, enter 2001:4860:4860::8888 and 2001:4860:4860::8844, then save.
  • Windows 10 has no separate DNS option in Settings. Press Win + R, run ncpa.cpl, right-click your adapter and open Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties → Use the following DNS server addresses, and the same under Internet Protocol Version 6 (TCP/IPv6). The commands below work on both versions.
bash
REM Command Prompt as administrator. Replace "Wi-Fi" with your adapter name
REM (list them with: netsh interface show interface)
netsh interface ipv4 set dnsservers name="Wi-Fi" source=static address=8.8.8.8 validate=no
netsh interface ipv4 add dnsservers name="Wi-Fi" address=8.8.4.4 index=2 validate=no
netsh interface ipv6 set dnsservers name="Wi-Fi" source=static address=2001:4860:4860::8888 validate=no
netsh interface ipv6 add dnsservers name="Wi-Fi" address=2001:4860:4860::8844 index=2 validate=no
ipconfig /flushdns

On macOS and Linux

  • macOS: System Settings → Network → Wi-Fi → Details → DNS, click + and add 8.8.8.8, 8.8.4.4 and the two IPv6 addresses.
  • Linux with systemd-resolved (for example Ubuntu and Fedora desktops): set it per connection in NetworkManager, or use resolvectl as below. Don't edit /etc/resolv.conf by hand on these systems; it's regenerated.
bash
# macOS
networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844

# Linux (NetworkManager): replace "Home Wi-Fi" with your connection name
nmcli con mod "Home Wi-Fi" ipv4.dns "8.8.8.8 8.8.4.4" ipv4.ignore-auto-dns yes \
  ipv6.dns "2001:4860:4860::8888 2001:4860:4860::8844" ipv6.ignore-auto-dns yes
nmcli con up "Home Wi-Fi"

# Linux (systemd-resolved, until the next reconnect; replace wlan0 with your interface)
sudo resolvectl dns wlan0 8.8.8.8 8.8.4.4
resolvectl status wlan0

On Android and iPhone

  • Android 9 or later: open Settings → Network & internet → Private DNS (under Advanced on some phones), choose Private DNS provider hostname and type dns.google. It encrypts your lookups and works on mobile data as well as Wi-Fi.
  • iPhone and iPad: Settings → Wi-Fi, tap (i) next to your network, then Configure DNS → Manual. Remove the existing entries and add 8.8.8.8 and 8.8.4.4. This applies to that one Wi-Fi network only.

How to Check You're Using Google DNS

Google publishes a special name that answers with the address of whoever asked it. Run it without naming a server, so the query goes through your normal settings:

bash
# Windows, macOS or Linux
nslookup -type=TXT o-o.myaddr.l.google.com

# Using Google DNS: you get a Google address (often 172.253.x.x, 192.178.x.x or 74.125.x.x)
# plus an "edns0-client-subnet" line.
# Not using Google: you get your ISP's or VPN's resolver address instead.

# DNSSEC check: this deliberately broken domain must fail
dig @8.8.8.8 dnssec-failed.org | grep status
# status: SERVFAIL

If the nslookup answer still shows your ISP, something is overriding your setting: the router forwarding to its ISP's DNS, IPv6 DNS servers still set to automatic, a VPN, or a network that intercepts port 53 (see below). A browser's secure DNS setting doesn't change this test, which uses your system's resolver. After any change, flush your DNS cache so old answers don't confuse it.

8.8.8.8 Not Working? Common Causes

Google Public DNS itself is very rarely down. When it seems to fail, it's usually one of these:

  • Your network intercepts DNS. Some ISPs, hotels and office firewalls redirect every query on port 53 to their own resolver, so 8.8.8.8 in your settings changes nothing. The o-o.myaddr.l.google.com test above shows a non-Google address when this happens. DoH or DoT to dns.google usually gets around it, where the network allows it.
  • A captive portal. On hotel, airport and café Wi-Fi, the sign-in page often only appears through the network's own DNS. Set DNS back to automatic, sign in, then switch back.
  • A firewall that only allows its own DNS. Corporate and school networks often block port 53 and 853 to outside resolvers. Use the network's resolver there.
  • A domain with broken DNSSEC. Google validates signatures. If a domain's DNSSEC is misconfigured, Google answers SERVFAIL while a resolver that doesn't validate may still return an address. The fix is on the domain's side.
  • Rate limiting. Google allows up to 1,500 queries per second from each IPv4 address (or IPv6 /64). Home users never get near that, but a busy mail server or crawler behind one IP can.
  • Stale answers. After switching, cached answers stay on your device until their TTL runs out. Flush the cache and test again.

If no site loads at all, follow our guide to DNS server not responding. If only one site fails with DNS_PROBE_FINISHED_NXDOMAIN, the problem is usually that domain's own records; see how to fix NXDOMAIN.

Is 8.8.8.8 the fastest DNS for you?

Run DNS Robot's DNS Speed Test from your own browser. It times Google, Cloudflare, Quad9 and nine other public resolvers over DNS-over-HTTPS, ranks them by median cached lookup time, and compares the winner with your current DNS on brand-new names.

Sources

  1. Get started with Google Public DNS (IPv4 and IPv6 addresses), Google
  2. Google Public DNS privacy, Google
  3. Google Public DNS FAQ, Google
  4. 1.1.1.1 public DNS resolver privacy commitment, Cloudflare
  5. Google Public DNS64, Google

Frequently Asked Questions

What are Google's DNS server addresses?

Google Public DNS uses 8.8.8.8 and 8.8.4.4 for IPv4, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6. Enter both addresses of each pair so your device has a fallback.

Is 8.8.8.8 safe to use?

Yes. 8.8.8.8 is Google Public DNS, a free resolver Google has run since December 2009. It validates DNSSEC, deletes logs containing your IP within 24 to 48 hours (except for security or abuse cases), and says it doesn't use personal information from the service to target ads.

What is 8.8.4.4?

8.8.4.4 is Google Public DNS's second IPv4 address. It's the same service as 8.8.8.8, not a slower backup, and you should enter it as your alternate DNS server.

Is 8.8.8.8 faster than 1.1.1.1?

Globally, 1.1.1.1 is usually a few milliseconds faster: DNSPerf's ranking (last 30 days, read on 4 October 2026) shows 13.63 ms for Cloudflare and 19.47 ms for Google. In our test from India, Google was faster for uncached lookups, so measure from your own network.

Is Google DNS better than my ISP's DNS?

Often, yes. Google Public DNS validates DNSSEC, doesn't redirect mistyped domains to ad pages and publishes its logging policy. Whether it's faster depends on how close Google's nearest site is compared with your ISP's resolver.

Does Google DNS track me?

Google logs your IP address with each query for 24 to 48 hours (longer only to deal with security or abuse), then keeps only a sample without the IP, at city or region level. Google says it doesn't link this data to your Google account.

What is dns.google?

dns.google is the hostname for Google Public DNS's encrypted endpoints. Enter it as the Private DNS provider hostname on Android, or use https://dns.google/dns-query as a DNS over HTTPS address.

Does Google DNS block adult content or malware?

No. Google Public DNS doesn't filter domains, except in rare security or legal cases. For filtering, use Cloudflare's 1.1.1.3 or OpenDNS FamilyShield for adult content and malware, or Quad9's 9.9.9.9 for malware only.

How do I know if I'm using Google DNS?

Run nslookup -type=TXT o-o.myaddr.l.google.com. If you're using Google Public DNS, the answer contains a Google address and an edns0-client-subnet line; otherwise you'll see your ISP's or VPN's resolver.

What is Google's IPv6 DNS address?

Google Public DNS answers on 2001:4860:4860::8888 and 2001:4860:4860::8844 (written out in full: 2001:4860:4860:0:0:0:0:8888 and ...:8844, for devices that reject "::"). For IPv6-only networks with NAT64, Google's DNS64 service uses 2001:4860:4860::6464 and 2001:4860:4860::64.

About the author

Shaik Vahid

Founder of DNS Robot. Vahid spent years in web hosting support fixing domains, DNS records, SSL certificates and email delivery for customers. He builds DNS Robot's tools and writes these guides from the errors people actually hit.

DNS Speed Test

Time Cloudflare 1.1.1.1, Google 8.8.8.8 and more public DNS servers from your own browser, against your current DNS, and find the fastest for you