Quad9 (9.9.9.9) is the best public DNS for security for most people, because it blocks known malware, phishing and botnet domains by default, validates DNSSEC on every endpoint, and collects no personal data as a Swiss nonprofit. Cloudflare's 1.1.1.2 is the best alternative if you also want malware filtering with top speeds, and NextDNS is the best choice when you want to control exactly what gets blocked.
Key takeaways
- Quad9 (9.9.9.9) is the best secure public DNS for most people: malware blocking on by default, DNSSEC validation everywhere, and no personal data collected.
- Use 1.1.1.2 for Cloudflare malware filtering or 1.1.1.3 to also block adult content; the plain 1.1.1.1 resolver blocks nothing.
- Always turn on encrypted DNS (DoH or DoT) and set a backup resolver from a different provider, because even the largest resolvers have outages.
Every domain you visit starts with a DNS lookup, and your resolver decides whether a known malicious domain ever resolves. The best public DNS for security blocks malware, phishing and botnet domains before your browser connects, encrypts your lookups so nobody on the network can read or forge them, and keeps as little of your data as possible.
What is the best public DNS for security?
Quad9 (9.9.9.9) is the best public DNS for security for most people. It blocks lookups of domains tied to malware, phishing and botnets on its default addresses, with no account or setup beyond entering 9.9.9.9 and 149.112.112.112. It is run by a Swiss nonprofit foundation that states it does not collect users' personal data, and it validates DNSSEC on every endpoint.
Cloudflare's 1.1.1.2 is the best alternative. It adds malware and phishing blocking to the fastest public resolver, and 1.1.1.3 adds adult-content blocking for family networks. The plain 1.1.1.1 resolver blocks nothing, so the .2 or .3 addresses are the secure choice, not the famous .1 pair.
For a different angle on the same resolvers, see our best public DNS servers list, which compares them on speed and privacy as well as security.
How does a secure public DNS protect you?
A secure public DNS protects you in three ways: it refuses to resolve known malicious domains, it encrypts your lookups so they cannot be read or altered in transit, and it validates DNSSEC signatures so forged answers are rejected. Together, those three layers stop a large share of drive-by malware and phishing before any connection happens.
Threat blocking works from lists. Quad9 aggregates threat intelligence from multiple independent providers, and when a domain is observed distributing malware, running phishing pages or acting as a botnet command-and-control endpoint, the resolver answers with NXDOMAIN, meaning the domain does not exist. Your browser never opens a connection to it.
Encryption closes a different gap. Plain DNS travels over UDP port 53 in clear text, so your ISP, a public Wi-Fi network or an attacker on the path can read every domain you look up and can forge answers. DNS over HTTPS and DNS over TLS encrypt the lookup, so only the resolver sees the query.
DNSSEC validation adds origin authentication. For zones signed by their operators, a validating resolver checks the cryptographic signature on the answer, as defined in RFC 4033. Quad9 enabled DNSSEC validation on all of its service endpoints from 15 June 2026, so even its unfiltered addresses now reject answers that fail signature checks, as explained in Quad9's announcement.
Best public DNS for security compared
The table below compares the leading public resolvers on the three things that matter for security: threat blocking, encrypted DNS support and logging. All of them are free at the basic level.
| Resolver | IPv4 addresses | Threat blocking | Encrypted DNS | Logging |
|---|---|---|---|---|
| Quad9 | 9.9.9.9, 149.112.112.112 | Yes, by default | DoH, DoT, DNSCrypt | No personal data collected |
| Cloudflare (malware) | 1.1.1.2, 1.0.0.2 | Yes, malware and phishing | DoH, DoT | Logs deleted within 25 hours |
| Cloudflare (family) | 1.1.1.3, 1.0.0.3 | Malware plus adult content | DoH, DoT | Logs deleted within 25 hours |
| Google Public DNS | 8.8.8.8, 8.8.4.4 | None | DoH, DoT | IP-linked logs kept 24 to 48 hours |
| NextDNS | Assigned per configuration | Yes, fully configurable | DoH, DoT | Optional logs, user-set retention |
| Control D | 76.76.2.1, 76.76.10.1 | Preset malware filter free | DoH, DoT, DoQ | No query logs on free resolvers |
| AdGuard DNS | 94.140.14.14, 94.140.15.15 | Ads, trackers and phishing | DoH, DoT, DoQ, DNSCrypt | No personal data on public servers |
| OpenDNS | 208.67.222.222, 208.67.220.220 | Phishing; more with an account | DoH, DoT | Cisco privacy policy applies |
| DNS4EU | 86.54.11.1, 86.54.11.201 | On in four of five variants | DoH, DoT | IPs anonymized; data processed in the EU |
Quad9 is the only resolver in this table that combines blocking by default with a no-personal-data policy and DNSSEC validation on every address. Cloudflare is the fastest option and the best-documented family filter. Google is the dependable unfiltered baseline, not a security pick.
The secure resolvers, in detail
Each resolver below fits a different user. Pick by what you want blocked, how much control you need and whose privacy policy you trust.
Quad9 — best for security and privacy
Quad9 is a free public DNS resolver run by a Swiss nonprofit foundation. Its recommended addresses, 9.9.9.9 and 149.112.112.112, block domains associated with malware, phishing, spyware and botnets using threat-intelligence feeds, and validate DNSSEC on every endpoint. Encrypted DNS is available over DoH at dns.quad9.net and DoT at dns.quad9.net.
The trade-off is scope. Quad9 blocks for security reasons only and leaves ads and trackers alone. It also runs two alternate addresses: 9.9.9.10 with no filtering, and 9.9.9.11 with filtering plus EDNS Client Subnet for better CDN routing. For users who want protection without configuration, it is the strongest free choice.
Cloudflare 1.1.1.2 and 1.1.1.3 — best family and malware filter
Cloudflare's plain 1.1.1.1 resolver is fast and private but filters nothing. Its 1.1.1.1 for Families variants add blocking: 1.1.1.2 and 1.0.0.2 block malware and phishing, while 1.1.1.3 and 1.0.0.3 block malware, phishing and adult content. Both variants are free and run on the same global network as the unfiltered resolver.
Cloudflare states it will never sell or share resolver data or use it for advertising, that client IPs are truncated, and that resolver logs are deleted within 25 hours. Encrypted endpoints are security.cloudflare-dns.com for malware filtering and family.cloudflare-dns.com for the family filter. The service launched on 1 April 2020, two years after the 1.1.1.1 resolver itself, as described in Cloudflare's launch post.
Google Public DNS — best unfiltered baseline
Google Public DNS (8.8.8.8 and 8.8.4.4) is one of the most dependable resolvers, with strong global coverage and consistent uptime. It supports DoH, DoT and DNSSEC validation, but it performs no threat blocking at all, and it keeps IP-linked logs for 24 to 48 hours.
Use it as a backup resolver behind Quad9 or Cloudflare, or as the unfiltered baseline when another security control does the filtering. It is not a security choice on its own.
NextDNS — best for full control
NextDNS gives you a personal resolver configuration with blocklists you choose yourself, including newly registered domains, which are a favorite of phishing campaigns. Logs are optional, with user-set retention and storage region. A free tier covers light use and paid plans cover heavier use.
The trade-off is setup. You create an account, pick your lists and point your devices at your assigned addresses. If you enjoy tuning, it is the most powerful option here; if you want zero configuration, Quad9 is simpler.
Control D — best preset filtering tiers
Control D publishes free public resolvers in preset tiers alongside paid fully-customizable configurations, and states it does not log or store DNS queries on the free service. The malware-blocking tier uses 76.76.2.1 and 76.76.10.1, and it supports DoH, DoT and DNS over QUIC.
It suits power users and families who want a fixed filter without an account, and small teams who may later upgrade to custom rules.
AdGuard DNS — best for ad and tracker blocking
AdGuard DNS (94.140.14.14 and 94.140.15.15) blocks ads, trackers and phishing by default, and supports DoH, DoT, DNS over QUIC and DNSCrypt. It states it collects no personal data on its public servers.
It is the easiest way to block ads and trackers network-wide, including on devices where you cannot install an extension. The trade-off is that aggressive ad blocking occasionally breaks a site, so keep the plain addresses handy.
OpenDNS — best free account-based filtering
OpenDNS, from Cisco, runs on 208.67.222.222 and 208.67.220.220 and blocks phishing by default, with more filtering available through a free account. Its FamilyShield variant at 208.67.222.123 blocks adult content as well. It is one of the oldest public resolvers and remains a solid choice for households that want account-based controls.
DNS4EU — best for users in the EU
DNS4EU is the EU-backed resolver launched in June 2025. Its Protective variant (86.54.11.201) blocks threats, IP addresses are anonymized, and data is processed in the EU. It supports DoH and DoT. If data residency inside the EU matters to you, it is the natural pick.
What is DNS over HTTPS and DNS over TLS?
DNS over HTTPS (DoH) and DNS over TLS (DoT) are the two standard ways to encrypt DNS lookups. DoH sends queries inside HTTPS traffic on port 443, as defined in RFC 8484, so lookups blend in with normal web traffic. DoT uses a dedicated TLS connection on port 853, as defined in RFC 7858.
Encryption matters because plain DNS is readable by everyone between you and the resolver. On public Wi-Fi, a hotel network or a compromised router, an attacker can see every domain you look up and can forge answers to send you to a fake site. Encrypted DNS stops both: the query is unreadable in transit and the answer is authenticated.
Turning on encryption does not change which domains get blocked. The resolver still applies its threat lists; encryption only protects the conversation between you and the resolver. You need both: a secure resolver and an encrypted connection to it.
Most modern systems support one or both. Windows 11 supports DoH in Settings, Android supports DoT through Private DNS, iOS and macOS support DoH profiles, and Firefox and Chrome both support DoH in the browser. Cloudflare documents the full endpoint list for each filtering level in its 1.1.1.1 documentation, so check your resolver's docs for its exact DoH URL or DoT hostname before you configure it.
How do you switch to a secure public DNS?
Switching takes about five minutes, and the router is the best place to do it: one change there covers every device on your network. If you cannot change the router, set the resolver on each device instead.
- Pick your resolver and its addresses. For most people that is Quad9 (9.9.9.9 primary, 149.112.112.112 secondary) or Cloudflare malware filtering (1.1.1.2 primary, 1.0.0.2 secondary). Write down both addresses before you start.
- Change it on the router. Open the router admin page, find the DNS or internet settings, and replace the ISP addresses with your chosen pair. Save and reboot the router. Every device on the network now uses the secure resolver.
- Or change it on the device. On Windows 11, open Settings, your network adapter, and set DNS to manual with your chosen addresses. On Android, use Private DNS with the resolver's DoT hostname. On iPhone or iPad, set the addresses under Wi-Fi settings or install a DoH profile.
- Turn on encrypted DNS. In Windows 11, enable DNS over HTTPS for the addresses you entered. In Firefox or Chrome, turn on secure DNS in the browser settings and enter the resolver's DoH URL. On Android, Private DNS encrypts automatically.
- Set a backup from a different provider. Cloudflare had a 62-minute global outage in July 2025, which showed that even the biggest resolvers can fail. Use Quad9 as primary and Cloudflare as secondary, or the reverse, so one outage does not take you offline.
- Test the change. Visit a test domain for your resolver, such as the phishing test address published by Cloudflare, or run a lookup and confirm the resolver answers. Then check that a known blocked category actually fails to load.
You can verify your current resolver after you switch with our free DNS lookup tool.
Your public IP address is visible with our free what-is-my-IP tool.
What a secure DNS cannot protect you from
A secure DNS is one layer, not a complete defense. It blocks lookups of domains on threat lists, and it cannot see anything else about your traffic.
It cannot block a phishing site on a brand-new domain that no threat list has seen yet, or on a compromised legitimate site that is not on any list. It cannot inspect the content of an HTTPS page, so a scam hosted on a trusted platform still loads.
It cannot stop scams that arrive by phone call, text message or a fake invoice, and it cannot protect you if you type your password into a convincing fake login page that does resolve.
It also cannot hide your browsing from your ISP entirely. Even with encrypted DNS, your ISP sees the IP addresses you connect to, and many sites can be identified from those addresses alone. If you need that level of privacy, you need a VPN on top of encrypted DNS, not instead of it.
Finally, DNS filtering is domain-level only. It answers a lookup for a blocked domain with a failure or a null address, and the page never loads. It does not scan downloads, block malicious files or replace endpoint security. Keep your browser, operating system and antivirus updated alongside it.
How do you test that your secure DNS is working?
Test in two steps: confirm the resolver changed, then confirm blocking works. Both take under a minute.
First, run a lookup and check which resolver answers. On Windows, open a terminal and run nslookup example.com, which shows the server that answered. On macOS or Linux, run dig example.com and look at the SERVER line. If it shows your ISP's address, the change did not take effect, and the usual cause is a device that cached the old settings or a router that overrode them.
Second, test blocking with a safe test domain. Cloudflare publishes test addresses for its Families resolvers: visiting the phishing test domain should fail to load when 1.1.1.2 is active, and the adult-content test domain should fail on 1.1.1.3. For Quad9, you can test DNSSEC validation by looking up dnssec-failed.org, a deliberately broken test domain: a validating resolver should return SERVFAIL rather than an answer.
If blocking does not work, check that you changed both the IPv4 and IPv6 addresses, that encrypted DNS is pointed at the filtered endpoint rather than the unfiltered one, and that no VPN or browser setting is overriding your system resolver. Our free SSL checker can also confirm that the sites you visit are serving valid certificates, which is the next layer after DNS.
The bottom line
For most people, Quad9 at 9.9.9.9 is the best public DNS for security: malware blocking on by default, DNSSEC validation on every endpoint, encrypted DNS support and a nonprofit operator that collects no personal data. If you want the fastest resolver with filtering, use Cloudflare's 1.1.1.2 for malware blocking or 1.1.1.3 for family filtering, and keep a second provider as backup.
Whatever resolver you pick, turn on encrypted DNS and test the change. Five minutes of setup buys you a layer of protection that blocks malicious domains before your browser ever connects, on every device on your network.
Frequently asked questions
What is the best public DNS for security?
Quad9 (9.9.9.9) is the best public DNS for security for most people. It blocks domains tied to malware, phishing and botnets by default, validates DNSSEC on every endpoint, supports encrypted DNS over HTTPS and TLS, and is run by a Swiss nonprofit that states it collects no personal data.
Is 1.1.1.1 secure?
The plain 1.1.1.1 resolver is private and fast, with encrypted DNS support and logs deleted within 25 hours, but it blocks nothing. For security you need 1.1.1.2, which blocks malware and phishing, or 1.1.1.3, which also blocks adult content. Use the .2 or .3 addresses, not the plain .1 pair.
Does changing DNS protect against phishing?
It helps, but only against known malicious domains. A secure resolver blocks lookups of domains on threat-intelligence lists, so a phishing link never resolves. It cannot stop phishing on a brand-new domain, a compromised legitimate site, or a scam that arrives by phone or text, so it must sit alongside browser protection and phishing-resistant MFA.
Is Google Public DNS safe to use?
Google Public DNS (8.8.8.8) is reliable and supports encrypted DNS and DNSSEC, but it performs no threat blocking at all, and it keeps IP-linked logs for 24 to 48 hours. It is a good unfiltered baseline behind other controls, not a security choice on its own.
What is the difference between DNS over HTTPS and DNS over TLS?
Both encrypt your DNS lookups so nobody on the network can read or forge them. DNS over HTTPS (DoH) sends queries inside HTTPS traffic on port 443, which blends in with normal web traffic. DNS over TLS (DoT) uses a dedicated TLS connection on port 853. Either is a large improvement over plain port 53 DNS.
Should I use Quad9 or Cloudflare?
Use Quad9 if your priority is security with no setup: malware blocking is on by default and no personal data is collected. Use Cloudflare's 1.1.1.2 if you want malware filtering with the fastest measured speeds, or 1.1.1.3 for a family filter. Many people run Quad9 as primary and Cloudflare as secondary.
Can my ISP see my DNS queries if I use a secure public DNS?
Your ISP can still see the destination IP addresses you connect to, but it cannot read your DNS queries if you use encrypted DNS (DoH or DoT). Plain DNS on port 53 is visible to your ISP, your Wi-Fi network and anyone in the middle, which is why encryption matters as much as the resolver you pick.
What happened to Mullvad DNS?
Mullvad shut down its public encrypted DNS servers on 2 November 2026 and now sponsors Quad9 instead. Anyone still pointing devices at dns.mullvad.net needs to switch, and Quad9 is the recommended successor.
Sources
- Quad9 — Quad9 Enables DNSSEC on All Service Endpoints
- Cloudflare Blog — Introducing 1.1.1.1 for Families
- Cloudflare Developers — Network operators: 1.1.1.1 docs
- WhatIsMyIPNow — Best Free Public DNS Servers
- Malware.news — Best DNS Servers for Security and Privacy (2026)
- Cyble — Best DNS Servers For Speed, Security & Privacy
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 Quad9's official blog, Cloudflare's 1.1.1.1 documentation and published resolver comparisons, verified December 2026.
How we write and fact-check →