The best DNS server for most people is Cloudflare 1.1.1.1: it is among the fastest public resolvers, deletes query logs within 24 hours, and is audited by KPMG. Choose Quad9 9.9.9.9 if you want malware blocking on by default, Google 8.8.8.8 for maximum reliability, and NextDNS if you want custom filtering and per-device rules.
Key takeaways
- Cloudflare 1.1.1.1 is the best all-round pick: fast, free, and audited, with optional malware and family filtering.
- Quad9 blocks phishing and malware domains by default, while Google and the default Cloudflare address do not filter at all.
- DNS speed depends on your location, so measure from your own network instead of trusting a global ranking.
Every website you open starts with a DNS lookup, and your internet provider picks the resolver for you by default. That default is rarely the fastest, the most private, or the safest option — and switching to a public DNS server takes about two minutes, costs nothing, and can make your browsing measurably quicker and harder to attack.
How we chose these DNS servers
We compared public resolvers on four things that matter: speed from real benchmarks, security (malware blocking and DNSSEC), privacy (what is logged, for how long, and whether anyone audits it), and filtering (parental controls, ads and trackers). Every server here is free to use, supports encrypted DNS, and is operated by a company or nonprofit with a published privacy policy.
One warning up front: global rankings are averages. Because these providers use anycast routing, the fastest resolver in one city can be the slowest in another, so the only ranking that matters is the one measured from your network. Our free DNS lookup tool can show you what your current resolver returns.
The best DNS servers compared
Latency figures are approximate global averages from 2026 benchmarks, not guarantees for your connection. The PublicDNS.info 2026 ranking draws on live monitoring of more than 100,000 resolvers.
| Provider | Best for | Primary / Secondary | Malware blocking | Logging | Price |
|---|---|---|---|---|---|
| Cloudflare | Speed and privacy | 1.1.1.1 / 1.0.0.1 | Optional (1.1.1.2) | Deleted within 24 hours, KPMG-audited | Free |
| Google Public DNS | Reliability | 8.8.8.8 / 8.8.4.4 | No | Temporary logs 24–48 hours, then anonymized | Free |
| Quad9 | Security | 9.9.9.9 / 149.112.112.112 | Yes, by default | No personal data stored | Free |
| NextDNS | Custom filtering | Custom per account | Yes, configurable | User-controlled, off by default | Free to 300k queries/month; $1.99/month after |
| OpenDNS | Family controls | 208.67.222.222 / 208.67.220.220 | Yes | Query data logged for analytics | Free basic; paid plans available |
| AdGuard DNS | Ad and tracker blocking | 94.140.14.14 / 94.140.15.15 | Yes, plus ads | No-logs policy stated | Free; paid plans available |
| CleanBrowsing | Family filtering | 185.228.168.9 / 185.228.169.9 | Yes | No personal data stored | Free basic; paid from $5/month |
| Control D | Custom rules and geo options | 76.76.2.0 / 76.76.10.0 | Yes, configurable | No logs on free tier | Free; paid plans available |
| Mullvad DNS | Maximum privacy | 194.242.2.2 / 194.242.2.3 | Optional | Zero logs, no account needed | Free |
| Comodo Secure DNS | Simple malware blocking | 8.26.56.26 / 8.20.247.20 | Yes | Logs for security purposes | Free |
The best DNS servers for speed and security
Each entry gives the addresses to use, what it is best at, and its trade-offs.
1. Cloudflare (1.1.1.1) — best overall for speed and privacy
Cloudflare launched 1.1.1.1 in 2018 as a privacy-first public resolver, and it is the fastest public DNS service in most global benchmarks. Its anycast network spans more than 300 cities, so most users reach a nearby node, and independent tests typically show average latency around 11 milliseconds.
- Addresses: 1.1.1.1 and 1.0.0.1; IPv6 2606:4700:4700::1111 and 2606:4700:4700::1001.
- Privacy: query logs deleted within 24 hours, data never sold or used for advertising, and privacy claims audited annually by KPMG.
- Filtering: none on the default address; 1.1.1.2 blocks malware, 1.1.1.3 blocks malware and adult content.
- Pros: fastest in most regions; audited privacy; DoH, DoT and DNSSEC supported; free WARP app for mobile.
- Cons: US jurisdiction; no malware blocking unless you switch to a filtered address.
- Who should pick it: almost everyone, as the default choice.
2. Google Public DNS (8.8.8.8) — best for reliability
Google Public DNS launched in December 2009 and remains the most widely used public resolver in the world. It runs on Google's massive infrastructure, so it is stable and consistent across continents, and it validates DNSSEC.
- Addresses: 8.8.8.8 and 8.8.4.4; IPv6 2001:4860:4860::8888 and 2001:4860:4860::8844.
- Privacy: full IP addresses kept temporarily for 24 to 48 hours for diagnostics, then replaced with anonymized location data; permanent logs hold no personally identifiable information.
- Filtering: none. Google resolves exactly what the domain publishes, which is predictable but offers no protection against malicious domains.
- Pros: the most battle-tested resolver; excellent global coverage; rarely blocked by captive portals or routers.
- Cons: no malware blocking; privacy assurances are weaker than Cloudflare's or Quad9's.
- Who should pick it: anyone who values stability above all, or whose network has trouble with other resolvers.
3. Quad9 (9.9.9.9) — best for security
Quad9 is a Swiss nonprofit founded in 2016 by IBM, Packet Clearing House and the Global Cyber Alliance. Its signature feature is default-on blocking of phishing and malware domains using threat intelligence from more than 20 partners, so a malicious link often simply fails to resolve.
- Addresses: 9.9.9.9 and 149.112.112.112; IPv6 2620:fe::fe and 2620:fe::9; unfiltered variant 9.9.9.10.
- Privacy: no IP address logging, Swiss jurisdiction outside the Five Eyes, and published transparency reports.
- Filtering: security filtering only — no content or parental filtering.
- Pros: strongest built-in threat blocking; nonprofit with no incentive to monetize data; DNSSEC enforced.
- Cons: latency can be higher than Cloudflare or Google in regions with fewer nodes; rare false positives cannot be whitelisted individually.
- Who should pick it: anyone who wants security protection with zero configuration.
4. NextDNS — best for custom filtering
NextDNS is a configurable resolver that works like a cloud version of Pi-hole. You get a personal endpoint, choose your own blocklists, set per-device policies, and see analytics for your own queries.
- Addresses: custom per account, shown in your dashboard; standard anycast addresses 45.90.28.0 and 45.90.30.0.
- Privacy: query logging is off by default; if you enable it, you choose the retention period from one hour to forever.
- Filtering: fully configurable — blocklists, allowlists, parental controls, and different rules per device.
- Pros: the most control of any resolver here; DoH, DoT, DoQ and DNSCrypt supported.
- Cons: free tier caps at 300,000 queries a month, after which it falls back to an unfiltered resolver; US jurisdiction.
- Pricing: free up to 300,000 queries a month; Pro $1.99 a month or $19.90 a year for unlimited queries.
- Who should pick it: power users and families who want different rules for different devices.
5. OpenDNS — best for family content filtering
OpenDNS, owned by Cisco, is the oldest name in this list and the most flexible for families. A free account lets you block more than 80 content categories, set schedules, and review your own query logs. FamilyShield (208.67.222.123) works without an account and blocks adult content.
- Addresses: 208.67.222.222 and 208.67.220.220; FamilyShield 208.67.222.123 and 208.67.220.123.
- Privacy: query data is logged to power its security analytics; account holders can review their own logs.
- Filtering: yes — customizable categories with a free account, or preset family filtering with FamilyShield.
- Pros: deepest parental controls of the big resolvers; reliable global network; phishing protection included.
- Cons: weaker privacy than the top three; full customization needs an account.
- Who should pick it: families who want category-level control without running their own filter.
6. AdGuard DNS — best for ad and tracker blocking
AdGuard DNS blocks ads, trackers and malicious domains at the DNS level, so pages load faster and tracking scripts never resolve. It is the simplest way to get network-wide ad blocking without installing anything on each device.
- Addresses: 94.140.14.14 and 94.140.15.15; family variant 94.140.14.15 blocks adult content too.
- Privacy: stated no-logs policy; encrypted DNS supported.
- Filtering: ads, trackers and malware by default; family variant adds adult-content filtering.
- Pros: noticeable speed and cleanliness improvement on ad-heavy sites; works on every device at the router level.
- Cons: can break some sites that depend on ad scripts; fewer customization options than NextDNS.
- Who should pick it: anyone who wants ad blocking everywhere, including on phones and smart TVs.
7. CleanBrowsing — best free family filter
CleanBrowsing offers three free filtered resolvers: security only, adult content blocked, and a full family filter. Paid plans add per-device controls, custom allowlists and reporting.
- Addresses: family filter 185.228.168.168 and 185.228.169.168; security filter 185.228.168.9 and 185.228.169.9; adult filter 185.228.168.10 and 185.228.169.11.
- Privacy: no personal data stored, according to its published policy.
- Filtering: malware, phishing and adult content, depending on the address you choose.
- Pros: simple, preset filters with no account needed; good choice for a family router.
- Cons: smaller network than the big three, so latency varies more by region; paid plans start at $5 a month.
- Who should pick it: families who want a set-and-forget filter on the home router.
8. Control D — best for custom rules and flexibility
Control D is a highly configurable resolver from the team behind Windscribe. Free users get malware blocking and a choice of preset profiles; paid plans add custom rules, geo-unblocking options and per-device profiles.
- Addresses: 76.76.2.0 and 76.76.10.0; malware-blocking variant 76.76.2.1.
- Privacy: no logs on the free tier, according to its published policy.
- Filtering: configurable blocklists, custom rules and productivity filters on paid plans.
- Pros: flexible profiles; DoH, DoT and DoQ supported; good for bypassing regional blocks.
- Cons: the free tier is more limited than NextDNS's; smaller operator than Cloudflare or Google.
- Who should pick it: users who want NextDNS-style control with different pricing and features.
9. Mullvad DNS — best for maximum privacy
Mullvad DNS comes from the Swedish company behind the Mullvad VPN. It requires no account, keeps zero logs, and offers content-blocking variants for ads, trackers, malware and adult content.
- Addresses: 194.242.2.2 and 194.242.2.3; ad-blocking variant 194.242.2.4.
- Privacy: zero logs, no accounts, Swedish jurisdiction; nothing links queries back to you.
- Filtering: optional — the standard address does not filter, while separate addresses block ads, trackers and malware.
- Pros: the strongest privacy posture in this list; open, audited approach from a privacy-first company.
- Cons: smaller network, so speed varies; no parental-control dashboard.
- Who should pick it: privacy-focused users who distrust US-based resolvers.
10. Comodo Secure DNS — best simple malware blocker
Comodo Secure DNS is a straightforward free resolver that blocks access to known malicious domains using Comodo's threat intelligence. It has no dashboard and no customization, which is the point: set it once and forget it.
- Addresses: 8.26.56.26 and 8.20.247.20.
- Privacy: logs are kept for security purposes, so it is not a privacy-first choice.
- Filtering: malware and phishing domains blocked by default.
- Pros: simple, free, and effective at its one job; long track record.
- Cons: weaker privacy policy than the leaders; no content filtering or customization.
- Who should pick it: users who want basic malware blocking with the least setup.
How do you change your DNS server?
Change it on your router to cover every device at home, or on one device to test it first. On Windows, go to Settings, Network, your adapter, then edit the DNS settings. On macOS, go to System Settings, Network, your connection, Details, then DNS. On iPhone and Android, set a private DNS hostname such as one.one.one.one for Cloudflare or dns.quad9.net for Quad9.
After switching, flush your DNS cache: ipconfig /flushdns on Windows, or sudo dscacheutil -flushcache on macOS. Then check that the change took effect with our free DNS lookup tool, which shows the resolver answering for your connection. If a site stops loading, switch back to automatic DNS and try a different provider — a wrong address is the usual cause.
How do you measure which DNS server is fastest for you?
Do not trust a global ranking. Run a simple test from your own network at two different times of day.
- Time a lookup directly: on Linux or macOS, run
dig @1.1.1.1 example.comanddig @8.8.8.8 example.com, and compare the "Query time" lines. Repeat a few times and take the median, not the first result. - Use a benchmark tool: DNS Benchmark (Windows) or namebench tests many resolvers from your connection and ranks them by cached, uncached and dot-com lookup times.
- Test real browsing: load a few heavy sites with each resolver and notice whether pages feel faster. DNS only affects the first lookup, so the gain is in snappier starts, not faster downloads.
- Keep the winner for a week: latency varies with time of day and ISP routing, so a one-minute test can mislead you.
In one published benchmark run, Cloudflare's cached lookups averaged 0.007 seconds against Google's 0.072, OpenDNS's 0.085 and Quad9's 0.113 — but that test ran from one location, and your numbers will differ. Measure, then decide.
Should you use encrypted DNS?
Yes, if your device and resolver support it. Standard DNS queries travel in plaintext, so anyone on your network — a public Wi-Fi operator, a compromised router, your ISP — can see every domain you look up and can tamper with the answers. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt the lookup, and DNSSEC validation checks that the answer was not forged.
All the resolvers in this list support DoH and DoT, and most modern browsers let you turn encrypted DNS on in settings: Firefox and Chrome both offer it, and Android's Private DNS setting uses DoT.
Turn it on at the operating-system level where you can, so every app benefits, not just the browser. A detailed comparison of the encrypted DNS options is in the State of Surveillance encrypted DNS guide.
Encrypted DNS does not hide your IP address or the servers you connect to — for that you need a VPN. Our free WebRTC leak test can show whether your real IP is leaking.
What should you avoid when choosing a DNS server?
Avoid resolvers with no published privacy policy, no encryption support and no track record — a free resolver that logs everything is worse than your ISP's default. Avoid "fastest DNS" lists that rank by a single benchmark from a single location, and avoid changing DNS as a way to bypass geo-blocks: that is what a VPN is for, and DNS alone will not do it.
Also, do not expect DNS to fix a slow connection. DNS only affects the first few milliseconds of a page load. If your downloads are slow, the problem is your connection, not your resolver. And remember that changing DNS does not change your IP address or hide your traffic from your ISP by itself — it changes who resolves your lookups. For the network around your devices, see our guide to securing your Wi-Fi.
The bottom line
For most people, Cloudflare 1.1.1.1 is the best DNS server for speed and security: fast, free, audited, and with optional filtering a short address change away. If you want malware blocking with no setup, use Quad9 9.9.9.9. If you want control, use NextDNS.
Switching takes two minutes and is fully reversible, so there is no reason to stay on a slow, logging ISP default. Check what your connection currently resolves with our free DNS lookup tool.
Frequently asked questions
What is a DNS server?
A DNS server translates domain names like example.com into IP addresses your device can connect to. Every time you open a website, your device asks a DNS resolver first. Your internet provider assigns one by default, but you can switch to a public resolver that may be faster, more private, or safer.
What is the fastest DNS server?
Cloudflare 1.1.1.1 is the fastest public resolver in most global benchmarks, thanks to an anycast network spanning more than 300 cities. Google 8.8.8.8 is close behind. The fastest for you personally depends on your location and internet provider, so measure from your own network.
Is 1.1.1.1 safe to use?
Yes. Cloudflare 1.1.1.1 is a public resolver that supports DNSSEC validation and encrypted DNS, commits to deleting query logs within 24 hours, and submits to annual audits by KPMG. It does not filter malware on the default address; use 1.1.1.2 for malware blocking or 1.1.1.3 for family filtering.
Is 8.8.8.8 safe?
Yes, Google Public DNS is a reliable, widely used resolver with DNSSEC validation and encrypted DNS support. It keeps temporary logs for 24 to 48 hours for diagnostics, then anonymizes them, and it does not filter malicious domains, so it offers less security protection than Quad9 or filtered Cloudflare addresses.
Does changing DNS hide my activity from my internet provider?
Not by itself. A different resolver changes who answers your lookups, but your provider can still see the IP addresses you connect to unless you also use encrypted DNS and a VPN. Encrypted DNS (DoH or DoT) hides the content of your lookups from snoopers on the network.
Should I use my ISP's DNS or a public DNS server?
A public resolver is usually faster and more private than an ISP default, and some add malware blocking or parental controls. The exception is if your ISP's resolver is measurably faster from your location, which is worth a two-minute test before you switch.
What is the difference between DNS over HTTPS and DNS over TLS?
Both encrypt your DNS lookups so they cannot be read or changed on the network. DNS over HTTPS (DoH) sends queries inside HTTPS traffic on port 443, while DNS over TLS (DoT) uses a dedicated TLS connection on port 853. DoH is easier to use in browsers and apps; DoT is the standard for operating-system-level resolvers.
Can a DNS server block ads and trackers?
Some can. AdGuard DNS blocks ads and trackers by default, NextDNS and Control D let you choose your own blocklists, and Pi-hole lets you run your own filter at home. Cloudflare, Google and Quad9 do not block ads on their standard addresses.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against independent DNS comparison and benchmark pages published in 2026, and the providers' published privacy and filtering policies as summarized there.
How we write and fact-check →