Updated June 2026

Google Public DNS (8.8.8.8)

Speed benchmarks, privacy analysis, security features, and setup instructions for Google's DNS resolver.

What Is Google Public DNS?

Google Public DNS launched in December 2009 as a free, recursive DNS resolution service. It is one of the largest public DNS systems in the world, handling hundreds of billions of queries daily. The service operates on the IP addresses 8.8.8.8 and 8.8.4.4 for IPv4, and 2001:4860:4860::8888 and 2001:4860:4860::8844 for IPv6.

The core idea was straightforward: Google had the infrastructure to run a fast, reliable DNS resolver at global scale, and making it freely available would push the entire internet toward better performance. Unlike your ISP's default DNS resolver, Google Public DNS does not come bundled with content filtering, ad injection, or carrier-level tracking. It resolves domain names quickly and gets out of the way.

Google runs its DNS resolver nodes in data centers across the globe. The anycast routing system ensures that when you send a query to 8.8.8.8, it reaches the closest available Google data center. This distribution is what makes the service fast regardless of where you are located. Google also operates separate filtered variants: 8.8.8.8 blocks known malware domains, and 8.8.4.4 applies additional family-friendly content filtering.

Since 2009, Google Public DNS has become a de facto standard for users who want faster browsing without changing ISPs or paying for a premium DNS service. Many tech-savvy users configure 8.8.8.8 as their primary resolver on routers, phones, and laptops. It is also widely used by developers, system administrators, and privacy-conscious individuals who prefer a well-documented resolver with transparent policies over their ISP's default DNS.

Speed Analysis

Speed is the most common reason people switch to Google Public DNS. In our testing across multiple regions, Google consistently delivers average response times between 15 and 25 milliseconds for uncached queries. That places it in the top tier of public DNS resolvers, just behind Cloudflare's 1.1.1.1, which averages around 11 ms.

Global Average: ~20 ms

Across our test network spanning North America, Europe, and Asia-Pacific, Google Public DNS returned an average response time of approximately 20 milliseconds. This is fast enough that the difference from the fastest alternative (Cloudflare at ~11 ms) is imperceptible during normal web browsing. The gap becomes noticeable only in latency-sensitive applications like online gaming or when resolving many domains in rapid succession.

Regional Performance

North America sees the best performance from Google DNS, with typical response times between 8 and 15 milliseconds. The density of Google's data center infrastructure in the United States gives it a clear advantage over providers with fewer points of presence. In Europe, response times range from 12 to 22 milliseconds, with Western Europe performing better than Eastern Europe.

The Asia-Pacific region is where Google Public DNS often performs surprisingly well. In countries like Japan, South Korea, and Singapore, Google frequently matches or exceeds Cloudflare's speed, with response times of 5 to 12 milliseconds. This is due to Google's strong peering relationships with major ISPs in the region. In India and Southeast Asia, response times typically fall between 15 and 30 milliseconds.

South America and Africa see higher latencies, typically in the 20 to 40 millisecond range. Both regions have fewer Google data centers, which means queries travel farther before reaching a resolver node. Even so, Google's performance in these regions is competitive with other major public DNS providers.

Cached vs Uncached

The speeds above reflect uncached queries — that is, the first time a domain is looked up. Once a domain has been resolved and cached (by Google's resolver or your browser), subsequent lookups for that same domain are nearly instant. This means that for day-to-day browsing, where you revisit the same websites repeatedly, the speed difference between DNS providers shrinks considerably.

Consistency

Google Public DNS has one of the best latency consistency records among public resolvers. The p95 latency (the worst 5% of responses) rarely exceeds 40 ms, meaning you rarely experience slowdowns even under heavy load. This consistency matters more for user experience than raw average speed — a resolver that responds in 15 ms most of the time but occasionally spikes to 200 ms will feel slower than one that always responds in 20 ms.

Test Google DNS Speed Yourself

Privacy Concerns

Privacy is the most controversial aspect of Google Public DNS. Unlike Quad9 (a Swiss nonprofit) or Cloudflare (which commits to purging logs within 24 hours and submits to annual third-party audits), Google is an advertising company whose primary revenue comes from targeted ads. This creates an inherent tension when the same company that serves your DNS queries also runs the largest ad network on the internet.

What Google Logs

Google's official policy states that DNS query data is temporarily stored for up to 24 to 48 hours for debugging and performance optimization purposes. After that window, the data is permanently deleted. Google says it does not permanently associate DNS query data with individual Google accounts or IP addresses. The temporary logs include the queried domain name, the response, and the source IP address — but Google claims this data is not used for advertising purposes.

The Optimistic View

Google has a financial incentive to keep DNS data separate from ad targeting. If users believed their DNS queries were feeding the ad machine, many would stop using Google DNS entirely, reducing Google's influence over internet infrastructure. Google also publishes a transparency report about government data requests related to its DNS service, which provides some accountability.

The Skeptical View

Critics point out that Google's privacy commitments are voluntary and not legally binding in the way that regulations like GDPR are. A change in Google's privacy policy, a government request, or a corporate restructuring could theoretically alter how DNS data is used. For users who want zero logging regardless of the entity running the resolver, Quad9 or Cloudflare's 1.1.1.1 are stronger choices. For users who want DNS filtering plus no logging, NextDNS or AdGuard DNS provide more transparent options.

Practical Privacy Tips

If you use Google DNS but want to limit data exposure, enable DNS-over-HTTPS (DoH) in your browser. This encrypts your DNS queries in transit, preventing your ISP or anyone on your local network from seeing which domains you resolve. Combined with Google's temporary logging policy, DoH significantly reduces the privacy footprint of DNS resolution.

Security & DNSSEC

Google Public DNS supports DNSSEC (DNS Security Extensions) validation. DNSSEC adds cryptographic signatures to DNS records, which allows resolvers to verify that the response they receive from an authoritative nameserver has not been tampered with. Without DNSSEC, a man-in-the-middle attacker could redirect your DNS queries to a malicious server without your knowledge.

When you use Google DNS, DNSSEC validation happens automatically. If a domain's DNS records fail validation, Google returns a SERVFAIL response rather than providing a potentially forged answer. This protects against DNS spoofing and cache poisoning attacks. You do not need to configure anything on your end to benefit from DNSSEC validation.

Malware Blocking

Google Public DNS does not block known malicious domains by default. The standard 8.8.8.8 resolver resolves any domain regardless of its reputation. However, Google does offer filtered variants: 8.8.8.8 (clean) and 8.8.4.4 (family-friendly), though the filtering on these addresses is primarily focused on adult content rather than malware.

If threat blocking is important to you, consider alternatives like Quad9 (9.9.9.9), which blocks known-malicious domains by default using threat intelligence from multiple feeds. Cloudflare also offers 1.1.1.2 as a malware-blocking variant. Both provide automatic protection against phishing, malware, and botnet domains without any configuration.

DoS Protection

Google's DNS infrastructure benefits from the same DDoS mitigation systems that protect all Google services. This means Google Public DNS is exceptionally resilient against denial-of-service attacks. In practice, Google DNS has never experienced significant downtime since its launch in 2009, even during major internet-wide events that took other resolvers offline.

DNS-over-HTTPS Support

Google Public DNS supports both DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT). These protocols encrypt DNS queries in transit, preventing eavesdropping and manipulation by third parties.

DoH Endpoint

The DoH endpoint for Google Public DNS is https://dns.google/dns-query. This URL accepts standard DNS wire-format queries over HTTPS. Most modern browsers — Chrome, Firefox, Edge, Safari — can be configured to use this endpoint directly. When you enable DoH in your browser settings and select Google as the provider, all DNS queries are encrypted and sent to this endpoint.

DoT Endpoint

DNS-over-TLS uses the hostname dns.google on port 853. DoT encrypts DNS queries at the transport layer and is commonly used on Android 9+ devices and Linux systems. The difference between DoH and DoT is mostly technical: DoH blends DNS traffic with regular HTTPS traffic (making it harder to block), while DoT uses a dedicated port that network administrators can potentially block.

Browser Configuration

To enable Google DNS-over-HTTPS in Chrome, go to Settings > Privacy and security > Security > Use secure DNS. Toggle the switch on and select Google (Public DNS) from the dropdown. In Firefox, navigate to Settings > Privacy & Security > DNS over HTTPS and select Google Public DNS from the list. Once enabled, your browser encrypts all DNS queries regardless of your system-level DNS settings.

On iOS 14+ and iPadOS 14+, you can enable DNS-over-HTTPS at the system level by adding a DNS configuration profile or using a compatible DNS app. Android 9+ supports Private DNS, which uses DNS-over-TLS. Enter dns.google as the hostname in your device's Private DNS settings.

Setup Guide

Switching to Google Public DNS takes about two minutes. You can change DNS settings on your device, your router, or both. Changing at the router level affects every device on your network.

Windows 10/11

Open Settings > Network & Internet. Click on your active connection (Wi-Fi or Ethernet), then click Hardware properties. Next to DNS server assignment, click Edit. Select Manual, toggle IPv4 on, and enter 8.8.8.8 as Preferred DNS and 8.8.4.4 as Alternate DNS. If you use IPv6, enter 2001:4860:4860::8888 and 2001:4860:4860::8844. Save the changes.

macOS

Open System Settings > Network. Select your active connection (Wi-Fi or Ethernet) and click Details. Go to the DNS tab. Remove any existing entries by selecting them and clicking the minus button. Click the plus button under DNS Servers and add 8.8.8.8, then add 8.8.4.4. Click OK to save.

Linux (NetworkManager)

Run sudo nmcli connection modify "Your Connection" ipv4.dns "8.8.8.8 8.8.4.4" followed by sudo nmcli connection modify "Your Connection" ipv4.ignore-auto-dns yes. Restart the connection with sudo nmcli connection down "Your Connection" && sudo nmcli connection up "Your Connection".

Android

Go to Settings > Network & Internet > Private DNS. Select Private DNS provider hostname and enter dns.google. Save. This enables DNS-over-TLS, encrypting your DNS queries.

iOS / iPadOS

Go to Settings > Wi-Fi. Tap the info icon next to your connected network. Tap Configure DNS > Manual. Remove any existing servers and add 8.8.8.8, then add 8.8.4.4. Tap Save.

Router (All Devices)

Log into your router's admin panel (usually at 192.168.1.1 or 192.168.0.1). Find the DNS settings under WAN, Internet, or DHCP settings. Replace your ISP's DNS servers with 8.8.8.8 and 8.8.4.4. Save and restart the router. Every device on your network will now use Google DNS.

After changing your DNS settings, run our DNS speed test to confirm the change took effect and measure the improvement.

Google DNS vs Alternatives

Google Public DNS is one of several major public DNS resolvers. Here is how it stacks up against the most common alternatives across the dimensions that matter most.

Google DNS vs Cloudflare 1.1.1.1

Cloudflare is faster on average (~11 ms vs ~20 ms) and has a stronger privacy commitment with annual KPMG audits and a 24-hour log retention policy. Google is more established (operational since 2009 vs 2018) and has stronger peering in Asia-Pacific. Both support DoH and DoT. Neither blocks malware by default. If speed and privacy are your top priorities, Cloudflare edges ahead. If you value long track record and Google ecosystem integration, Google DNS is solid.

Google DNS vs Quad9 (9.9.9.9)

Quad9 is a Swiss nonprofit that blocks known-malicious domains by default and enforces DNSSEC on all responses. It does not log personal data. Speed is comparable to Google (~19 ms vs ~20 ms globally). Quad9 is the better choice if security is your primary concern. Google is faster in some Asia-Pacific regions and has broader name recognition.

Google DNS vs OpenDNS

OpenDNS, owned by Cisco, offers content filtering and phishing protection on its free Home plan. Google DNS does not filter content. If you need parental controls or content filtering for a household, OpenDNS is the better choice. For raw speed without filtering, Google DNS is faster.

Google DNS vs AdGuard DNS

AdGuard DNS blocks advertisements and trackers at the DNS level across your entire network. Google DNS does not block ads. If you want network-wide ad blocking without running software on every device, AdGuard DNS is the obvious choice. For general-purpose resolution without filtering, Google DNS is faster and more widely trusted.

Summary Table

Cloudflare wins on speed and privacy. Quad9 wins on security. Google DNS wins on reliability and Asia-Pacific performance. OpenDNS wins on content filtering. AdGuard DNS wins on ad blocking. The right choice depends on your priorities, and the best way to decide is to test each resolver from your own network.

Frequently Asked Questions

Is Google DNS (8.8.8.8) free to use?

Yes, Google Public DNS is completely free. There are no usage limits, no premium tiers, and no hidden costs. Google operates the service as part of its broader mission to improve the internet.

Does Google DNS log my browsing history?

Google DNS temporarily stores query logs for 24 to 48 hours for debugging and performance optimization. The data is anonymized after that window. Google has stated it does not permanently correlate DNS data with individual Google accounts.

Is Google DNS faster than Cloudflare?

Cloudflare 1.1.1.1 is generally faster globally, with average response times around 11 ms versus Google's 20 ms. However, Google often outperforms Cloudflare in Asia-Pacific regions due to its strong peering relationships with local ISPs.

Does Google DNS support DNS-over-HTTPS?

Yes. Google Public DNS supports DoH at https://dns.google/dns-query and DoT at dns.google:853. Most modern browsers and operating systems can be configured to use Google's encrypted DNS endpoints directly.

What are the Google DNS IP addresses?

The primary DNS addresses are 8.8.8.8 and 8.8.4.4. Google also offers IPv6 addresses 2001:4860:4860::8888 and 2001:4860:4860::8844. For malware blocking, use 8.8.8.8 (filtered), and for family filtering, use 8.8.4.4 (filtered).

How do I change my DNS to Google on Windows?

Open Settings > Network & Internet > Ethernet or Wi-Fi > Hardware properties. Click Edit next to DNS server assignment, choose Manual, and enter 8.8.8.8 as the primary DNS and 8.8.4.4 as the alternate DNS. Save the changes.

Does Google DNS block malware?

Google Public DNS does not block malicious domains by default. However, it does support DNSSEC validation, which prevents DNS spoofing attacks. For threat blocking, consider Quad9 (9.9.9.9) or Cloudflare's 1.1.1.2 variant instead.