The best DNS server for privacy is Quad9 (9.9.9.9) if you want malware blocking with no personal data collected, or Cloudflare (1.1.1.1) if you want the fastest resolver with audited short log retention. NextDNS is best if you want to control logging and filtering yourself, and Mullvad DNS is best if you want no account at all.
Key takeaways
- Quad9 and Cloudflare are the best free starting points: Quad9 blocks malware, Cloudflare is fastest with audited privacy.
- Encrypted DNS (DoH or DoT) stops your provider seeing lookups, but the resolver itself still sees them, so its logging policy matters.
- NextDNS and Mullvad DNS give you the most control, while Google Public DNS trades privacy for reliability and speed.
Every site you visit starts with a DNS lookup: your device asks a resolver to turn a name like example.com into an IP address. Whoever runs that resolver can see every name you look up, so the default — usually your internet provider — is rarely the most private choice.
How did we choose the best DNS servers for privacy?
We ranked resolvers on logging policy, jurisdiction, encryption support, blocking, speed and whether they need an account. A resolver only made the list if its privacy claims are published and, where possible, independently checked.
- Logging: what is kept, for how long, and whether IP addresses are stored or anonymized.
- Jurisdiction and ownership: nonprofit vs commercial, and which country's laws apply.
- Encryption: DNS over HTTPS (DoH) and DNS over TLS (DoT) support.
- Blocking: malware and phishing blocking, plus optional ad and tracker blocking.
- Account: no account is better for privacy than a required sign-up.
- Reliability: a global anycast network, so the service stays fast and available.
We did not run our own speed tests for this list, so we do not quote benchmark numbers as our own results. Addresses and policies below come from the providers' own documentation.
Which DNS server is best for privacy? Compared
Quad9 is the best all-round free choice for privacy plus security, Cloudflare is the best for speed, and NextDNS is the best if you want control. Mullvad DNS is the simplest no-account option.
| DNS server | Best for | Free plan | Starting price | Key feature |
|---|---|---|---|---|
| Quad9 | Privacy plus malware blocking | Free, no account | Free | Blocks malicious domains, no personal data collected |
| Cloudflare 1.1.1.1 | Speed and privacy | Free, no account | Free | Fastest large resolver, logs deleted within 25 hours |
| NextDNS | Custom filtering and logs | 300,000 queries a month | Paid plan available | Your own blocklists, log retention and region |
| Mullvad DNS | No-account privacy | Free, no account | Free | No logs, no sign-up, content-blocking options |
| AdGuard DNS | Blocking ads and trackers | Free, no account | Free | Blocks ads, trackers and malicious sites |
| Google Public DNS | Reliability everywhere | Free, no account | Free | Huge global network, DNSSEC validation |
| Control D | Family and custom rules | Free tier available | Paid plan available | Profiles, categories and custom rules per device |
What does DNS privacy actually mean?
DNS privacy has two parts: who can see your lookups in transit, and what the resolver does with them afterward. Encryption fixes the first part; the provider's policy fixes the second.
Plain DNS sends lookups in clear text, so anyone on the network — your provider, a Wi-Fi hotspot owner, or someone snooping — can see the names you request. DNS over HTTPS and DNS over TLS encrypt that traffic. But the resolver itself still sees every query, so a resolver that logs and sells data is no better than a provider that does the same. That is why this list weighs logging policy as heavily as encryption.
1. Quad9 — best for privacy plus malware blocking
Quad9 is a free, recursive, anycast DNS platform run by a Swiss nonprofit. Its default addresses are 9.9.9.9 and 149.112.112.112, with IPv6 at 2620:fe::fe. It blocks lookups of domains tied to malware, phishing and botnets, with no account or setup beyond entering the addresses.
- Logging: Quad9 says it retains no personal data about you, stores no IP addresses, and does not share data with marketers. It is based in Switzerland, where strict laws regulate these promises.
- Encryption: DNS over HTTPS at dns.quad9.net and DNS over TLS are supported.
- Blocking: Security blocking is on by default. A non-blocking variant is available on 9.9.9.10.
Pros: no account, no personal data collected, malware blocking built in, nonprofit with no data-selling motive. Cons: no ad or tracker blocking, and no per-device customization. Pick it if: you want the strongest free privacy-plus-security default and you do not want to configure anything.
2. Cloudflare 1.1.1.1 — best for speed and privacy
Cloudflare's resolver uses 1.1.1.1 and 1.0.0.1, with IPv6 at 2606:4700:4700::1111. It is consistently at or near the top of public speed benchmarks, and its privacy claims are among the most scrutinized in the market.
- Logging: Cloudflare says it does not store your IP address, deletes resolver logs within 25 hours, and does not sell data or use it for ad targeting. The commitment has been independently audited.
- Encryption: DNS over HTTPS and DNS over TLS are supported on all variants.
- Blocking: The default 1.1.1.1 address does not filter anything. Use 1.1.1.2 and 1.0.0.2 to add malware blocking, or 1.1.1.3 and 1.0.0.3 to block malware and adult content.
Pros: very fast, audited privacy, no account. Cons: US company, and the default address blocks nothing. Pick it if: you want a fast, private resolver and you are happy to pick a filtering variant yourself.
3. NextDNS — best for custom filtering and log control
NextDNS turns DNS into a policy engine. You create a configuration, choose blocklists, content categories and logging settings, and get personal addresses for that configuration. It is the most flexible resolver on this list.
- Logging: Logs are optional, with user-set retention and storage region. You can turn logging off entirely.
- Encryption: DNS over HTTPS, DNS over TLS and DNSCrypt are supported.
- Free tier: 300,000 queries a month. Past that, NextDNS keeps answering queries but stops blocking until the next month, according to its pricing page.
Pros: full control over blocklists, analytics and retention; per-device rules. Cons: needs an account, and the free tier has a query cap. Pick it if: you want ad blocking, parental controls or per-device rules, and you are comfortable setting them up.
4. Mullvad DNS — best for no-account privacy
Mullvad DNS is run by Mullvad, the VPN company known for accepting cash and requiring no email address for its VPN accounts. Its DNS service needs no account at all and is free to use, with or without the Mullvad VPN.
- Logging: Mullvad says its DNS service keeps no logs of queries tied to users.
- Encryption: DNS over HTTPS and DNS over TLS are supported.
- Blocking: Several variants are offered, including ad, tracker and malware blocking, and a base variant with no blocking.
Pros: no account, no sign-up, strong privacy reputation. Cons: fewer configuration options than NextDNS, and no dashboard. Pick it if: you want maximum privacy with minimum setup and you do not need per-device rules.
5. AdGuard DNS — best for blocking ads and trackers
AdGuard DNS uses 94.140.14.14 and 94.140.15.15. Its default service blocks ads, trackers and malicious sites at the DNS level, so it works across apps and devices without a browser extension.
- Logging: AdGuard publishes a DNS privacy policy describing what it collects and how long it keeps it. Read it before you switch, as with any resolver.
- Encryption: DNS over HTTPS, DNS over TLS and DNSCrypt are supported.
- Blocking: Ads and trackers are blocked by default on the standard addresses, with a family variant that also blocks adult content.
Pros: network-wide ad and tracker blocking, free, no account for the basic service. Cons: blocking can break some sites, so you may need to allow-list them. Pick it if: you want ad blocking on every device, including smart TVs and phones.
6. Google Public DNS — best for reliability everywhere
Google Public DNS uses 8.8.8.8 and 8.8.4.4, with IPv6 at 2001:4860:4860::8888. It is one of the oldest and most widely used public resolvers, with a huge global network and DNSSEC validation.
- Logging: Google publishes a privacy policy for the service. It keeps temporary logs for operational purposes and deletes IP addresses after a short period, but as a Google service it is governed by Google's broader data handling, which is less private than a nonprofit resolver.
- Encryption: DNS over HTTPS is supported; DNS over TLS support is partial.
- Blocking: None. It resolves everything, including malicious domains.
Pros: very reliable, fast almost everywhere, well documented. Cons: no blocking, and Google's data handling is the weakest privacy story on this list. Pick it if: reliability matters more than privacy, or as a secondary resolver.
7. Control D — best for family and custom rules
Control D offers profiles, category blocking and custom rules per device, with a free tier and paid plans for more features. It is a good fit for households that want different rules for children, work devices and guests.
- Logging: Control D publishes its logging and retention settings in its dashboard and documentation. Check the current policy before you switch.
- Encryption: DNS over HTTPS and DNS over TLS are supported.
- Blocking: Category filters, custom allow and block lists, and per-device profiles are the main features.
Pros: flexible rules, good for families and small teams. Cons: the most useful features need a paid plan, and setup takes longer than Quad9 or Cloudflare. Pick it if: you want different DNS rules for different people or devices in one household.
How do you choose the right private DNS server?
Match the resolver to what you actually want it to do. Most people need only one of these three answers.
- Want blocking with no setup? Use Quad9 at 9.9.9.9 and 149.112.112.112.
- Want speed with audited privacy? Use Cloudflare at 1.1.1.1 and 1.0.0.1, or 1.1.1.2 if you want malware blocking too.
- Want ad blocking or per-device rules? Use NextDNS or AdGuard DNS, and accept the account and setup that come with them.
- Want no account at all? Use Mullvad DNS.
Set the addresses on your router so every device in the house uses them, and set the same provider as primary and secondary — do not mix providers, or you will not know which policy applies to a given lookup. You can verify what your network is resolving with our free DNS lookup tool.
How do you set up a private DNS server?
On your router, find the DNS settings — usually under Internet, WAN or DHCP — replace the provider's addresses with your chosen pair, save, and restart the router. On a single device, change DNS in the network settings: on Windows, in the adapter's IPv4 properties; on macOS, in System Settings, Network, DNS; on iPhone and Android, in the private DNS or Wi-Fi settings.
Turn on encrypted DNS where your device offers it. In Chrome and Firefox, DNS over HTTPS is a browser setting. On Android, the Private DNS setting accepts a hostname such as dns.quad9.net or one.one.one.one. After changing settings, test that lookups work and that your old provider's resolver is no longer in use.
What should you avoid in a DNS server?
Avoid resolvers with no published privacy policy, no named company, or a business model that depends on selling browsing data. Avoid mixing a private resolver with your provider's resolver as a fallback — the fallback can leak the very lookups you wanted to protect.
Also remember what DNS cannot do. It cannot hide the IP addresses you connect to, it cannot encrypt your web traffic, and it cannot stop a site you visit from tracking you with cookies. For those, you need HTTPS, a VPN or Tor, and browser privacy settings as well. DNS is one layer, not a complete privacy solution. For a wider check, see our guide to securing your Wi-Fi.
The bottom line
For most people, Quad9 is the best DNS server for privacy: free, no account, no personal data collected, and malware blocking built in. If speed matters more, Cloudflare 1.1.1.1 is the best alternative, and NextDNS is the best choice when you want to control filtering and logging yourself.
Pick one, set it on your router, turn on encrypted DNS, and check the result with the free DNS lookup tool. Quad9's own service page explains its no-personal-data promise, and Cloudflare publishes its privacy commitments for 1.1.1.1.
Frequently asked questions
What is the most private DNS server?
Quad9 and Mullvad DNS are the strongest on paper: Quad9 is a Swiss nonprofit that says it collects no personally identifiable information, and Mullvad DNS needs no account and keeps no logs tied to you.
Is 1.1.1.1 really private?
Cloudflare says it does not store your IP address, deletes resolver logs within 25 hours, and does not sell data or use it for ad targeting. Those commitments have been independently audited.
Does changing DNS hide my browsing from my ISP?
Partly. Encrypted DNS stops your ISP seeing the names you look up, but your ISP can still see the IP addresses you connect to, and the DNS resolver itself sees your queries. A VPN hides more, but shifts trust to the VPN provider.
Is free DNS safe to use?
Free DNS from a reputable nonprofit or a large provider with a published, audited privacy policy can be safe. Avoid free resolvers with no privacy policy, no company behind them, or a business model based on selling browsing data.
Should I use DNS over HTTPS or DNS over TLS?
Either is a big improvement over plain DNS. DNS over HTTPS blends in with web traffic and is easier to set in browsers, while DNS over TLS is often set at the operating-system or router level. Use whichever your device supports.
Can a private DNS server block ads and trackers?
Yes, some can. AdGuard DNS and NextDNS block ads and trackers at the DNS level, and NextDNS lets you choose your own blocklists. Quad9 blocks only malicious domains, not ads.
Do I set private DNS on my router or on each device?
Set it on your router and every device on your network uses it automatically. Set it on a single device if you want different rules for that device, or if you do not control the router.
Will changing DNS make my internet faster?
It can, by a few milliseconds per lookup, because large resolvers answer quickly from nearby servers. Cloudflare is often the fastest in public benchmarks, but the difference is small compared with your connection speed.
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 the official service, privacy and pricing pages of Quad9, Cloudflare, NextDNS, Mullvad, Google Public DNS and AdGuard DNS.
How we write and fact-check →