DNS & OptimizationLow Severity

Best DNS Servers 2026: Complete Directory of Fastest & Most Secure Public Resolvers

Switching your DNS server is one of the fastest, free performance upgrades you can make to your home network. Your default ISP-assigned DNS resolvers are often slow, unencrypted, and log your browsing data. This guide ranks every major free public DNS resolver by speed, privacy, and security — with exact IP addresses, IPv6 support, DoH/DoT endpoints, and step-by-step setup instructions for routers, Windows, macOS, Android, and iOS.

Quick Reference

All Public DNS Servers — At a Glance

ProviderPrimary IPv4Secondary IPv4Avg SpeedBest For
Cloudflare DNS1.1.1.11.0.0.111msFastest + Privacy
Google Public DNS8.8.8.88.8.4.420msMost Reliable
Quad99.9.9.9149.112.112.11215msBest Security
OpenDNS208.67.222.222208.67.220.22025msBest Filtering
CleanBrowsing185.228.168.9185.228.169.930msBest for Families
AdGuard DNS94.140.14.1494.140.15.1518msBlocks Ads at DNS

Speed benchmarks based on global averages from DNSPerf. Individual performance varies by location and ISP.

DNS Resolver Deep Dive — Full Profiles

Each resolver below includes exact IPv4/IPv6 addresses, DoH and DoT endpoints for encrypted DNS, speed data, privacy policy summary, and recommended use cases.

#1

Cloudflare DNS

Fastest + Privacy

Operated by Cloudflare, Inc. (USA)

11ms
avg latency
Primary IPv4
1.1.1.1
Secondary IPv4
1.0.0.1
Primary IPv6
2606:4700:4700::1111
Secondary IPv6
2606:4700:4700::1001
DoH Endpoint
https://cloudflare-dns.com/dns-query
DoT Hostname
one.one.one.one
Privacy
Excellent
Security
DNSSEC + DoH + DoT
Filtering
None (1.1.1.1) / Malware (1.1.1.2) / Malware+Adult (1.1.1.3)

Cloudflare launched 1.1.1.1 on April 1, 2018 and rapidly became the world's fastest public DNS resolver. Its Anycast network spans 300+ data centers across every continent, routing each query to the nearest edge node. Cloudflare's privacy policy is market-leading: all transaction logs are purged within 24 hours and independently audited annually by KPMG. For families, Cloudflare also offers 1.1.1.2 (blocks malware) and 1.1.1.3 (blocks malware and adult content).

Pros
  • Globally fastest (11ms average)
  • KPMG-audited privacy
  • Free DoH and DoT
  • Family filter variants
Cons
  • US-based jurisdiction
  • No customizable filtering without Cloudflare Gateway
#2

Google Public DNS

Most Reliable

Operated by Google LLC (USA)

20ms
avg latency
Primary IPv4
8.8.8.8
Secondary IPv4
8.8.4.4
Primary IPv6
2001:4860:4860::8888
Secondary IPv6
2001:4860:4860::8844
DoH Endpoint
https://dns.google/dns-query
DoT Hostname
dns.google
Privacy
Good
Security
DNSSEC + DoH + DoT
Filtering
None

Google Public DNS, launched in December 2009, is the most widely used DNS resolver in the world by query volume. It maintains a massive global cache, giving it extremely high cache hit rates for popular domains. Google DNS supports EDNS Client Subnet (ECS), which shares a portion of your IP with content delivery networks (CDNs) to route media streams from Netflix, YouTube, and Spotify to the nearest caching nodes — improving streaming quality. Logs are anonymized within 48 hours.

Pros
  • Highest global cache hit rate
  • EDNS Client Subnet for CDN optimization
  • Unmatched reliability (99.999% SLA)
  • Excellent IPv6 support
Cons
  • Google data practices (privacy-aware users may prefer Cloudflare)
  • Slightly slower than Cloudflare
#3

Quad9

Best Security

Operated by Quad9 Foundation (Switzerland)

15ms
avg latency
Primary IPv4
9.9.9.9
Secondary IPv4
149.112.112.112
Primary IPv6
2620:fe::fe
Secondary IPv6
2620:fe::9
DoH Endpoint
https://dns.quad9.net/dns-query
DoT Hostname
dns.quad9.net
Privacy
Excellent
Security
DNSSEC + Threat Blocking + DoH + DoT
Filtering
Malware blocking via 20+ threat intelligence feeds

Quad9 is operated by the Quad9 Foundation, a Swiss non-profit cybersecurity organization. It automatically blocks DNS queries to known malicious domains using threat intelligence aggregated from over 20 cybersecurity partners including IBM X-Force, Proofpoint, and Secureworks. If your device attempts to resolve a phishing site or malware distribution domain, Quad9 blocks the resolution before any connection is made — providing a transparent security layer with no software installation required. Swiss jurisdiction provides GDPR compliance by default.

Pros
  • Automatic malware domain blocking
  • Swiss jurisdiction (strong privacy laws)
  • No personal data logging
  • Free for personal and commercial use
Cons
  • Slightly aggressive filtering may block legitimate domains
  • Slightly slower than Cloudflare
#4

OpenDNS

Best Filtering

Operated by Cisco Systems (USA)

25ms
avg latency
Primary IPv4
208.67.222.222
Secondary IPv4
208.67.220.220
Primary IPv6
2620:119:35::35
Secondary IPv6
2620:119:53::53
DoH Endpoint
https://doh.opendns.com/dns-query
DoT Hostname
dns.umbrella.com
Privacy
Moderate
Security
DNSSEC + Content Filtering
Filtering
Customizable category-based web filtering (free account required)

OpenDNS, now owned by Cisco, was one of the first public DNS providers and pioneered customizable content filtering. By creating a free OpenDNS account and linking it to your home IP address, you can configure category-based filtering (blocking adult content, gambling, social media, etc.) across your entire network. This makes OpenDNS particularly popular for family home networks and schools. Cisco Umbrella (enterprise version) offers advanced threat intelligence used by Fortune 500 companies.

Pros
  • Customizable content category filtering
  • Parental control features
  • Anti-phishing protection
  • Long-established and reliable
Cons
  • Free tier logs queries (privacy tradeoff)
  • Requires account for custom filtering
  • Slower than Cloudflare/Quad9
#5

CleanBrowsing

Best for Families

Operated by CleanBrowsing (USA)

30ms
avg latency
Primary IPv4
185.228.168.9
Secondary IPv4
185.228.169.9
Primary IPv6
2a0d:2a00:1::2
Secondary IPv6
2a0d:2a00:2::2
DoH Endpoint
https://doh.cleanbrowsing.org/doh/family-filter/
DoT Hostname
family-filter-dns.cleanbrowsing.org
Privacy
Good
Security
Content filtering + Malware blocking
Filtering
Family Filter / Adult Filter / Security Filter (free tiers)

CleanBrowsing specializes in family-safe DNS filtering with three free tiers: Security Filter (blocks malware and phishing), Adult Filter (blocks adult content), and Family Filter (blocks adult content, mixed content, and proxies). Unlike OpenDNS, CleanBrowsing's basic filtering tiers require no account — just point your router to their DNS IPs and content filtering is immediately active. Particularly popular for schools, libraries, and homes with children.

Pros
  • No account needed for basic filtering
  • Three filter tiers (Security/Adult/Family)
  • Works at router level for all devices
  • Minimal data logging
Cons
  • Slower than top-tier resolvers
  • Custom filtering requires paid plan
  • Smaller infrastructure than Google/Cloudflare
#6

AdGuard DNS

Blocks Ads at DNS

Operated by AdGuard Software Ltd. (Cyprus)

18ms
avg latency
Primary IPv4
94.140.14.14
Secondary IPv4
94.140.15.15
Primary IPv6
2a10:50c0::ad1:ff
Secondary IPv6
2a10:50c0::ad2:ff
DoH Endpoint
https://dns.adguard-dns.com/dns-query
DoT Hostname
dns.adguard-dns.com
Privacy
Excellent
Security
Ad blocking + Tracker blocking + Malware blocking
Filtering
Ads + Trackers + Malware (free) / Custom filters (paid)

AdGuard DNS is the only major free public DNS resolver that blocks advertising networks and tracking domains at the DNS level — network-wide, without any browser extension required. By resolving ad server and tracker domains to null responses, it removes ads from websites, apps, and Smart TVs across every device on your network. AdGuard DNS does not log any personal data and is GDPR compliant. The free default servers block ads and trackers; a paid plan allows custom allowlists and block lists.

Pros
  • Ad blocking at DNS level (no extensions needed)
  • Tracker blocking on all devices
  • No personal data logging
  • Excellent GDPR compliance
Cons
  • Ad blocking may break some websites
  • Custom rules require paid subscription
  • Smaller global PoP network than Google/Cloudflare

How to Change DNS on All Platforms

Use these settings with any public DNS provider above. Replace the IPs with your chosen resolver's addresses.

Windows 11 / 10
  1. Settings → Network & Internet → Ethernet or Wi-Fi
  2. Click your network → Edit DNS server assignment
  3. Select Manual → enable IPv4
  4. Enter Primary and Secondary DNS IPs → Save
macOS
  1. System Settings → Network → select your adapter
  2. Click Details → DNS tab
  3. Click + to add Primary DNS IP
  4. Add Secondary DNS IP → OK → Apply
Android (Private DNS)
  1. Settings → Network & Internet → Private DNS
  2. Select Private DNS provider hostname
  3. Enter the DoT hostname (e.g. one.one.one.one for Cloudflare)
  4. Tap Save — applies to all networks
iOS / iPadOS
  1. Settings → Wi-Fi → tap (i) next to your network
  2. Scroll to DNS → tap Configure DNS
  3. Select Manual → tap Add Server
  4. Enter primary and secondary IPs → Save
Router (All Devices)
  1. Log in to router admin panel (192.168.1.1 or 192.168.0.1)
  2. Go to WAN Settings or Internet Setup
  3. Find Primary DNS / Secondary DNS fields
  4. Enter your chosen DNS IPs → Save → Reboot router
Linux (systemd)
  1. Edit /etc/systemd/resolved.conf
  2. Set DNS=1.1.1.1 1.0.0.1 under [Resolve]
  3. Run: sudo systemctl restart systemd-resolved
  4. Verify: resolvectl status

DNS Security: DoH, DoT, and DNSSEC Explained

DNS-over-HTTPS (DoH)
Port: TCP 443

Encrypts DNS queries inside standard HTTPS traffic. ISPs and attackers cannot see which domains you query. Supported by Chrome, Firefox, Edge, and Windows 11 natively.

DNS-over-TLS (DoT)
Port: TCP 853

Wraps DNS queries in TLS encryption on a dedicated port. Easier to block than DoH but provides stronger privacy when allowed. Used by Android Private DNS and router firmware.

DNSSEC
Port: UDP/TCP 53

Cryptographically signs DNS records so clients can verify the response came from the legitimate authoritative server. Prevents DNS cache poisoning and man-in-the-middle attacks on DNS.

Related DNS Guides

Quick Fix Checklist

  • 1Note your current DNS servers (run ipconfig /all on Windows) before changing
  • 2Choose a DNS provider based on your priority: speed, privacy, security, or filtering
  • 3Configure DNS at the router level for whole-network coverage
  • 4Enter both primary AND secondary addresses for failover
  • 5Flush your DNS cache after changing settings (ipconfig /flushdns on Windows)
  • 6Run a DNS leak test to verify queries are reaching the new provider

Common Root Causes

Slow ISP DNS Resolvers

Default ISP-assigned DNS servers are often congested and slow, adding unnecessary latency to every website lookup.

Lack of DNS Encryption

Standard ISP DNS uses unencrypted UDP port 53, exposing browsing queries to third-party monitoring and hijacking.

No Malware Filtering

ISP DNS resolvers do not block queries to known malicious or phishing domains, leaving devices vulnerable.

ISP DNS Logging

Many ISPs log DNS queries for advertising profiling and data monetization, compromising user privacy.

Step-by-Step Diagnostic Resolution Flow

  1. 1

    Identify Your Current DNS Resolver

    Before switching, know which DNS you are currently using. On Windows, open Command Prompt and run ipconfig /all — look for 'DNS Servers' under your active network adapter. On macOS or Linux run: cat /etc/resolv.conf. If you see your router's IP (like 192.168.1.1), you're using your router's default DNS forwarding.

    Expert Tip: Run: nslookup -type=txt whoami.ds.akahelp.net to see your actual upstream resolver IP.
  2. 2

    Choose a DNS Server for Your Use Case

    Different DNS resolvers are optimized for different priorities. Cloudflare 1.1.1.1 is the fastest globally. Google 8.8.8.8 has the widest cache. Quad9 9.9.9.9 blocks malware. OpenDNS offers parental controls. AdGuard DNS blocks ads. CleanBrowsing filters adult content. Match the resolver to your needs.

    Expert Tip: For gaming and general browsing: Cloudflare (1.1.1.1). For family networks: CleanBrowsing or OpenDNS. For security-first: Quad9.
  3. 3

    Configure DNS on Your Device or Router

    You can change DNS at two levels: individual device (affects only that device) or router (affects your entire network). Router-level configuration is recommended for households with many devices. Log in to your router admin panel (e.g. 192.168.1.1), find the DNS settings under WAN or DHCP, and enter the primary and secondary addresses.

    Expert Tip: Always configure both primary AND secondary DNS addresses for automatic failover if one server experiences an outage.
  4. 4

    Verify DNS Change Took Effect

    After changing DNS settings, flush your OS DNS cache and verify the change. On Windows: ipconfig /flushdns then nslookup google.com. On macOS: sudo killall -HUP mDNSResponder then dig google.com. The response server should now match your new DNS provider's IP.

    Expert Tip: Use DNS leak test tools (dnsleaktest.com) to verify your DNS queries are going to the correct resolver and not leaking to your ISP.

Expert Q&A & Troubleshooting Insights

What is the fastest DNS server in 2026?

Cloudflare DNS (1.1.1.1) is consistently the fastest public DNS resolver globally, with an average query response time of 11–13ms according to DNSPerf benchmarks. Google DNS (8.8.8.8) is a close second at around 20ms. Both are significantly faster than most ISP-provided DNS servers, which average 50–100ms.

Is changing your DNS server safe?

Yes, changing your DNS server to a reputable public resolver is completely safe. Companies like Cloudflare, Google, and Quad9 operate DNS infrastructure with enterprise-grade security. In fact, it is often safer than using your ISP's DNS, which may log your queries and lack protection against DNS hijacking.

Does changing DNS improve internet speed?

Changing DNS does not increase your download bandwidth, but it reduces DNS lookup latency — the time your browser takes to resolve a domain before loading it. On sites that pull resources from many domains, this can make browsing noticeably snappier. Cloudflare (1.1.1.1) can reduce lookup times by 50–80% compared to slow ISP DNS.

What is the best DNS for privacy?

Cloudflare (1.1.1.1) is the top privacy-focused public resolver. It deletes all transaction logs within 24 hours and supports DNS-over-HTTPS (DoH) and DNS-over-TLS (DoT) by default. Quad9 (9.9.9.9) is operated by a Swiss non-profit and never logs personal data. AdGuard DNS and CleanBrowsing also have strict no-logs policies.

What is the difference between primary and secondary DNS?

The primary DNS server is queried first for every lookup. The secondary DNS is only queried if the primary fails to respond within the timeout period. Having both configured provides automatic failover, ensuring DNS resolution continues even if one server experiences an outage. Always configure both.

Can I use different DNS servers on different devices?

Yes. You can configure DNS per-device in network adapter settings (Windows, macOS, Linux, Android, iOS) or configure DNS at the router level to apply to all devices on your home network. Router-level DNS settings override per-device settings unless the device has its own DNS configured.

What is DNS-over-HTTPS (DoH)?

DNS-over-HTTPS (DoH) encrypts your DNS queries by wrapping them inside standard HTTPS traffic on port 443. This prevents ISPs, network admins, and attackers from seeing which websites you are looking up. Most modern browsers (Chrome, Firefox, Edge) support DoH. All major public DNS providers support DoH endpoints.

Should I change DNS on my router or on my device?

Changing DNS at the router level is more efficient — it applies to every device on your home network without individual configuration. This is the recommended approach for families. However, if your ISP's router restricts DNS changes, configure DNS on each device individually. Mobile devices benefit from per-device DNS when on cellular networks.