Best DNS Servers 2026: Fastest & Most Secure (+ How to Change)

Summarize with:

Your DNS server is the service that translates every domain name you visit into the IP address your device connects to — and by default, you’re using whatever your internet provider assigned, which is often slower and less private than it needs to be. Switching to a better public DNS server is one of the simplest free upgrades you can make: faster page loads, stronger privacy, and in many cases built-in protection against malicious sites.

This guide ranks the best free public DNS servers for 2026 — by speed, security, and privacy — tells you which one fits your priorities, and shows you exactly how to change your DNS on Windows, macOS, Linux, your router, and mobile.

Quick answer

For most people, Cloudflare (1.1.1.1) is the best all-around DNS server — the fastest in most regions and strong on privacy. Choose Quad9 (9.9.9.9) for built-in malware blocking, Google (8.8.8.8) for maximum reliability, or OpenDNS for family content filtering. All are free, and switching takes a few minutes. Your ISP’s default is usually the slowest option.

Why change your DNS server?

Your ISP’s default DNS works, but it’s rarely the best choice. Switching to a reputable public resolver gives you:

  • Speed. ISP resolvers commonly respond in 80–200 ms; the top public resolvers often answer in under 20 ms — a difference you feel on the first visit to every new site. (For the full performance picture, see how to fix slow DNS lookups.)
  • Privacy. Many ISPs log your DNS queries — a complete record of every site you visit — and some monetize it. The privacy-focused resolvers below commit to not selling your data and to deleting logs quickly.
  • Security. Some resolvers automatically block known malware, phishing, and botnet domains before your browser ever connects.
  • Reliability. Major providers run globally distributed anycast networks with 99.99%+ uptime — often more dependable than a single ISP’s servers, which are also the most common cause of a “DNS server not responding” error.

One limit worth setting up front: changing your DNS doesn’t change your IP address or hide your traffic from your ISP by itself. It changes who resolves your lookups, not your visible IP — masking your IP requires a VPN. And unless you also enable encryption (covered near the end), your ISP can still see which domains you look up.

The best DNS servers in 2026

There’s no single “best” for everyone — it depends on whether you prioritize speed, security, privacy, or filtering. Here are the top free public resolvers with their addresses.

ProviderPrimary / SecondaryBest for
Cloudflare1.1.1.1 / 1.0.0.1Speed + privacy (all-rounder)
Google Public DNS8.8.8.8 / 8.8.4.4Reliability
Quad99.9.9.9 / 149.112.112.112Security (malware blocking)
OpenDNS208.67.222.222 / 208.67.220.220Family content filtering
AdGuard DNS94.140.14.14 / 94.140.15.15Blocking ads and trackers

Cloudflare (1.1.1.1) — best all-around. Launched in 2018, Cloudflare’s resolver is consistently the fastest public DNS in global benchmarks, thanks to an anycast network spanning hundreds of cities that puts a nearby node close to almost everyone. Its privacy policy is one of the strongest in the industry: it commits to never selling resolver data or using it for advertising, and to deleting logs quickly. It also offers security variants — 1.1.1.2 blocks malware, and 1.1.1.3 blocks malware plus adult content — handy for families. For most users, this is the recommended choice.

Google Public DNS (8.8.8.8) — most reliable. The world’s most widely used public resolver, handling over a trillion queries a day on Google’s massive infrastructure. Speed is excellent and nearly matches Cloudflare in many regions, and uptime is exceptional. Privacy is good but not the strongest here — Google keeps some anonymized data for diagnostics. If you want a rock-solid, universally compatible resolver, 8.8.8.8 is the safe pick.

Quad9 (9.9.9.9) — best for security. A Switzerland-based nonprofit that automatically blocks access to known-malicious domains using threat intelligence from multiple security partners — so a phishing or malware link often just fails to resolve. It doesn’t log personally identifiable information, and benefits from strong Swiss privacy law. Like Cloudflare and Google, it also validates DNSSEC by default — cryptographically checking that DNS answers haven’t been forged in transit. The best choice if you want security and privacy weighted equally.

OpenDNS (208.67.222.222) — best for families. Owned by Cisco and serving DNS since 2006, OpenDNS stands out for configurable content filtering — administrators can block whole categories (adult content, gambling, and so on). Its FamilyShield resolver (208.67.222.123) enforces adult-content filtering with no setup. Reliable, with optional paid tiers for advanced reporting.

AdGuard DNS (94.140.14.14) — best for ad blocking. Filters ads and trackers at the DNS level, network-wide, without installing anything on each device. A good middle ground if you want an ad-light experience everywhere; a non-filtering variant is also available.

Which is fastest for you? Because these providers all use anycast routing, the fastest one depends on your physical location and your ISP’s peering — a resolver that’s fastest in Frankfurt may not be in São Paulo. The rankings above hold globally on average, but the only way to know your fastest is to measure from your own connection with a DNS benchmark tool (like DNSPerf or a local DNS benchmark utility), which times each resolver from where you are.

⚠️ Changing DNS ≠ changing your IP

Switching to 1.1.1.1 or 8.8.8.8 changes who answers your domain lookups — it does not change the public IP that websites and your ISP see, and it doesn’t hide your browsing on its own. To mask your IP you need a VPN; to hide your lookups from your ISP you need encrypted DNS (below). DNS choice is about speed, security, and filtering — not anonymity.

Which DNS is the default in Chrome?

A common point of confusion: Chrome doesn’t have its own DNS server. By default it uses whatever DNS your operating system is set to — which, unless you’ve changed it, is your ISP’s. What Chrome does have is a “Use secure DNS” setting (Settings → Privacy and security → Security), which enables encrypted DNS (DNS over HTTPS). There you can leave it on your current provider or pick one from a list (Cloudflare, Google, Quad9, and others). So “the DNS Chrome uses” is either your OS setting or, if Secure DNS is on, whichever provider you selected there — not a Chrome-specific server.

How to change your DNS server

You can set DNS on a single device, or once on your router to cover every device on the network. Here’s each method.

Windows

  1. Open Settings → Network & Internet, and click your connection (Wi-Fi or Ethernet).
  2. Find DNS server assignment and click Edit (or, in older Windows, open the adapter’s Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties).
  3. Switch to Manual, turn on IPv4, and enter your chosen Preferred and Alternate DNS (e.g., 1.1.1.1 and 1.0.0.1).
  4. Save, then flush your DNS cache (ipconfig /flushdns) so the change takes effect immediately.

macOS

  1. Open System Settings → Network, select your active connection, and click Details.
  2. Go to the DNS tab.
  3. Under DNS Servers, click + and add your addresses (e.g., 1.1.1.1 and 1.0.0.1). Remove the old ISP entries if present.
  4. Click OKApply.

Linux

On most desktop distributions, edit the connection in Network settings → IPv4, switch DNS from Automatic to Manual, and enter the addresses. From the command line with NetworkManager:

nmcli con mod "Your-Connection" ipv4.dns "1.1.1.1 1.0.0.1" nmcli con mod "Your-Connection" ipv4.ignore-auto-dns yes nmcli con up "Your-Connection"

On your router (all devices at once)

Changing DNS on your router applies it to every device on the network — phones, TVs, consoles — without configuring each one. Log in to the router admin panel (commonly 192.168.1.1 or 192.168.0.1), find the DNS settings (often under Internet, WAN, or DHCP), enter your preferred and alternate addresses, and save. This is the most efficient option for a household.

Android and iOS

  • Android: for encrypted DNS, go to Settings → Network & internet → Private DNS, choose Private DNS provider hostname, and enter a hostname like 1dot1dot1dot1.cloudflare-dns.com or dns.quad9.net. For plain DNS, edit the Wi-Fi network’s IP settings (set to Static) and enter the addresses.
  • iOS: go to Settings → Wi-Fi, tap the ⓘ next to your network, tap Configure DNS → Manual, remove the existing servers, and add your own. (Cloudflare and Google also offer free apps that configure encrypted DNS system-wide.)

After changing on any device, confirm it took effect — if lookups still show your ISP’s servers, flush your DNS cache and reload.

Go further: encrypted DNS (DoH / DoT)

Changing your resolver improves speed and can add filtering — but by default DNS queries still travel in plain text, so your ISP (or anyone on the network) can see which domains you look up, even on HTTPS sites. Encrypted DNS closes that gap: DNS over HTTPS (DoH) and DNS over TLS (DoT) wrap your queries so they can’t be read in transit. All the major resolvers above support it, and you can enable it in your browser (Chrome’s “Use secure DNS,” Firefox’s DoH) or system-wide. For the full comparison of DoH, DoT, and DoQ and when to use each, see our guide to encrypted DNS.

A note for website owners

Everything above is about the resolver your device uses to look up domains. If you run a site, there’s a second, different DNS decision: the authoritative DNS that answers queries for your domain — hosted by your registrar, your host, or a premium DNS network. That choice affects how fast and reliably visitors worldwide resolve your site. A fast, globally distributed authoritative DNS lowers lookup time for every visitor; a slow one adds delay before your pages even start loading. For that side of DNS, see how to fix slow DNS lookups and our overview of what DNS is and how it works.

Frequently asked questions

What is the best DNS server?
For most people, Cloudflare (1.1.1.1) is the best all-around choice — it’s the fastest public resolver in most regions and has a strong privacy policy. Choose Quad9 (9.9.9.9) if you want automatic malware blocking, Google (8.8.8.8) for maximum reliability, or OpenDNS for family content filtering. All are free.

Is it safe to change my DNS server?
Yes, completely. Switching to a reputable public DNS provider like Cloudflare, Google, or Quad9 is safe and fully reversible — these services are used by millions of people. If anything feels off, you can switch back to automatic DNS at any time.

Does changing DNS make my internet faster?
It can make the initial connection to websites faster by resolving domain names more quickly, especially if your ISP’s resolver is slow. It doesn’t increase your bandwidth or download speed — a 4K stream won’t download faster — but pages can start loading sooner, which feels faster in everyday browsing.

Which DNS server does Chrome use by default?
Chrome doesn’t have its own DNS server — it uses your operating system’s DNS (your ISP’s, unless you changed it). Chrome does offer a “Use secure DNS” option that enables encrypted DNS through a provider you select, but the resolver itself is still one of the public providers, not a Chrome-specific one.

Does changing my DNS hide my browsing or change my IP?
No. Changing DNS only changes which service resolves your domain lookups. It doesn’t change your public IP address (that needs a VPN) and, unless you enable encrypted DNS, your ISP can still see your queries. DNS choice is about speed, security, and filtering — not anonymity.

Should I change DNS on each device or on my router?
The router is the most efficient option — it applies the faster DNS to every device on your network automatically. Configuring individual devices is better for laptops and phones that move between networks, so they keep your preferred DNS wherever they connect.

Fast DNS for your website, too

Choosing a fast resolver speeds up your own browsing — but your visitors’ speed depends on your site’s authoritative DNS. Copahost hosting includes fast, globally reachable DNS, correctly configured from day one.

Explore Copahost hosting

Conclusion

Switching your DNS server is a two-minute change with real payoff: faster lookups, better privacy, and — depending on the provider — automatic protection against malicious sites. For most people Cloudflare (1.1.1.1) is the best starting point; pick Quad9 for security, Google for reliability, or OpenDNS for family filtering. Set it once on your router to cover every device, flush your DNS cache so it takes effect, and — if privacy matters — turn on encrypted DNS so your queries aren’t sent in the clear. Just remember what it does and doesn’t do: better DNS means speed, security, and filtering — not a new IP address.

Share the Post:
Picture of Gustavo Gallas

Gustavo Gallas

Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development​. Also have brewing skills.