HackMyIP
← back to sheets

Best DNS Servers 2026: Speed, Privacy and Security Compared

~/sheets/best-dns-servers.md
1

Last updated: June 12, 2026. Resolver addresses and privacy policies re-checked against each provider's own documentation.

2

Best DNS Servers in 2026: The Quick Answer

3

The best DNS server depends on your priority: Quad9 (9.9.9.9) for privacy plus automatic malware blocking, Cloudflare (1.1.1.1) as the fast private all-rounder, AdGuard DNS for ad blocking, OpenDNS FamilyShield for family-safe filtering, and NextDNS or ControlD if you want to choose exactly what gets blocked. All of them are free.

4

Not sure which DNS you are using right now? Run our DNS Leak Test — it shows the resolver actually answering your queries, which is often not the one you think.

5

2026 Comparison Table

6
ProviderIPv4IPv6Best forLogging stance (per provider docs)
Cloudflare 1.1.1.11.1.1.1
1.0.0.1
2606:4700:4700::1111
2606:4700:4700::1001
Speed + privacyIPs truncated, logs deleted within 25 hours, never sold or shared
Google Public DNS8.8.8.8
8.8.4.4
2001:4860:4860::8888
2001:4860:4860::8844
ReliabilityTemporary logs with IP deleted in 24-48h; permanent logs anonymized
Quad99.9.9.9
149.112.112.112
2620:fe::fe
2620:fe::9
Security + privacyDoes not collect or record user IP addresses
OpenDNS (Cisco)208.67.222.222
208.67.220.220
Families / filteringOperated by Cisco; see Cisco's privacy policy
AdGuard DNS94.140.14.14
94.140.15.15
2a10:50c0::ad1:ff
2a10:50c0::ad2:ff
Ad blockingAggregated metrics + anonymous 24h domain stats, not linkable to users
NextDNSPer-configurationPer-configurationCustomizationNo logs unless you enable them; retention and region user-controlled
ControlDPublished per filter tierPublished per filter tierPreset filtering tiersSee provider's privacy policy
Mullvad DNS194.242.2.22a07:e340::2Encrypted-only (DoH/DoT)QNAME minimization; designed for encrypted transport
7

Addresses and policy summaries above were verified against each provider's own published documentation in June 2026. Dashes mean the provider does not publish that detail on the pages we checked.

8

The Best Public DNS Servers, Compared

9

Cloudflare 1.1.1.1 — Best All-Around

10

Best for: a fast, private, zero-configuration default. Cloudflare's public resolver privacy commitments state 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. Supports DNS over HTTPS (DoH) and DNS over TLS (DoT). Optional filtered variants: 1.1.1.2 (blocks malware) and 1.1.1.3 (blocks malware and adult content).

11
  • IPv4: 1.1.1.1 and 1.0.0.1
  • IPv6: 2606:4700:4700::1111 and 2606:4700:4700::1001
  • DoH: https://cloudflare-dns.com/dns-query
12

Google Public DNS 8.8.8.8 — Best for Reliability

13

Best for: a dependable, no-frills resolver on Google's global infrastructure. Privacy is decent but not zero-knowledge: per Google's own privacy page, temporary logs (which include your IP address) are deleted within 24 to 48 hours, while permanent logs keep only anonymized, city-level data with no IP addresses, and the data is not used to target ads. No content filtering.

14
  • IPv4: 8.8.8.8 and 8.8.4.4
  • IPv6: 2001:4860:4860::8888 and 2001:4860:4860::8844
  • DoH: https://dns.google/dns-query
15

Quad9 9.9.9.9 — Best for Security and Privacy

16

Best for: automatic protection with a genuinely strict privacy policy. Quad9 blocks domains associated with malware, phishing, spyware, and botnets using threat-intelligence feeds, and validates DNSSEC. It is operated by the Swiss-based non-profit Quad9 Foundation, and its privacy policy states it does not collect or record users' IP addresses at all, and does not share, sell, or rent any information that could identify an individual. An unfiltered variant (9.9.9.10) exists if you want no blocking.

17
  • IPv4: 9.9.9.9 and 149.112.112.112
  • IPv6: 2620:fe::fe and 2620:fe::9
18

OpenDNS — Best for Families

19

Best for: set-and-forget parental controls. OpenDNS (owned by Cisco) is the long-running choice for family filtering: FamilyShield comes preconfigured to block adult content with zero setup. OpenDNS publishes IPv4 resolver addresses on its setup guide; if you need IPv6 or per-category filtering, check the current options on its site.

20
  • IPv4: 208.67.222.222 and 208.67.220.220
  • FamilyShield (blocks adult content): 208.67.222.123 and 208.67.220.123
21

AdGuard DNS — Best for Ad Blocking

22

Best for: network-wide ad blocking without installing anything. The default servers block ads and trackers at the DNS level; a Family Protection variant additionally blocks adult content and enforces Safe Search, and a non-filtering variant does no blocking at all. On privacy, AdGuard's policy says it stores aggregated server performance metrics and an anonymous 24-hour database of requested domains with, in its words, no information that could link any domain to the user who requested it.

23
  • IPv4 (default, blocks ads and trackers): 94.140.14.14 and 94.140.15.15
  • IPv6 (default): 2a10:50c0::ad1:ff and 2a10:50c0::ad2:ff
24

NextDNS — Best for Customization

25

Best for: people who want a personal, fully configurable resolver — a cloud firewall for DNS. You create a configuration and point your devices at your own endpoints (DoH/DoT, plus linked IPs), then pick blocklists, parental controls, and analytics. By default nothing is logged unless you turn logging on; if you do, you choose the retention period (from one hour up to two years) and the storage jurisdiction, and NextDNS states it will never sell, license, or share user data. The free tier has a monthly query quota — beyond it, NextDNS keeps resolving but stops blocking.

26
  • Setup: per-configuration endpoints from nextdns.io (there is no universal public IP pair)
27

ControlD — Best for Preset Filtering Tiers

28

Best for: picking a ready-made filtering level without an account. ControlD (from the Toronto-based team behind Windscribe VPN) 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. Per-tier addresses, from ControlD's own documentation:

29
  • p0 — Unfiltered: 76.76.2.0 and 76.76.10.0 (IPv6 2606:1a40:: and 2606:1a40:1::) — DoH: https://freedns.controld.com/p0
  • p1 — Malware blocking: 76.76.2.1 and 76.76.10.1 — DoH: https://freedns.controld.com/p1
  • p2 — Ads & Tracking: 76.76.2.2 and 76.76.10.2 — DoH: https://freedns.controld.com/p2
  • p3 — Social blocking: 76.76.2.3 and 76.76.10.3 — DoH: https://freedns.controld.com/p3
30

Mullvad DNS — Best for Encrypted-Only Privacy

31

Best for: privacy-focused users who want encrypted transport by design. Mullvad (the VPN provider) runs a public resolver built for DoH and DoT — plain port 53 is only used to bootstrap its own hostnames — and applies QNAME minimization so upstream servers see as little of your query as possible. Content-blocking variants are published as separate addresses: adblock (194.242.2.3), base (194.242.2.4), extended (194.242.2.5), family (194.242.2.6), and all (194.242.2.9).

32
  • IPv4 (no blocking): 194.242.2.2
  • IPv6 (no blocking): 2a07:e340::2
  • DoH: https://dns.mullvad.net/dns-query
33

DNS4EU — The EU-Backed Option

34

Best for: users who want a resolver operated inside the European Union. DNS4EU is the public resolver launched under the EU's DNS4EU initiative, offered in five variants from protective (malware blocking) to fully unfiltered. Addresses per the official joindns4.eu setup page:

35
  • Protective: 86.54.11.1 and 86.54.11.201 (IPv6 2a13:1001::86:54:11:1) — DoH: https://protective.joindns4.eu/dns-query
  • Protective + child protection: 86.54.11.12 and 86.54.11.212 — DoH: https://child.joindns4.eu/dns-query
  • Protective + ad blocking: 86.54.11.13 and 86.54.11.213
  • Protective + child protection + ad blocking: 86.54.11.11 and 86.54.11.211
  • Unfiltered: 86.54.11.100 and 86.54.11.200
36

What Happened to dns0.eu?

37

dns0.eu, the French resolver recommended in many older "best DNS servers" lists, was discontinued in October 2025 — the operators said running it was no longer sustainable in time and resources. If you still have 193.110.81.0 or 185.253.5.0 configured, switch now: DNS4EU protective (86.54.11.1) is the closest EU-based equivalent, and Quad9 offers similar malware blocking with a strict no-IP-collection policy. Not sure what you are running? Our DNS leak test shows the resolver actually answering your queries.

38

Best Secure DNS: DNSSEC, Encryption, and Malware Blocking

39

"Best DNS" and "best secure DNS" are not always the same question. A secure resolver does three distinct things, and the strongest picks do all three: it validates DNSSEC so answers cannot be forged, it supports encrypted transport (DoH/DoT) so your queries cannot be read or tampered with on the wire, and it can optionally block malicious domains before your device ever connects to them.

40

DNSSEC — proof the answer is genuine

41

DNSSEC (DNS Security Extensions) cryptographically signs DNS records so a validating resolver can verify the answer really came from the domain owner and was not altered in transit — it defends against cache poisoning and spoofed responses. It does not encrypt or hide your queries; it only authenticates them. The major public resolvers — Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8), and Quad9 (9.9.9.9) — perform DNSSEC validation by default, per their own documentation. If you run your own resolver, enabling DNSSEC validation is the single biggest integrity upgrade you can make.

42

DoH and DoT — encryption so nobody can read your DNS

43

Classic DNS travels in plain text on port 53, which means your ISP, your network operator, or anyone on the path can see — and in principle modify — every domain you look up. Two standards fix this by encrypting the query:

44
    45
  • DNS over HTTPS (DoH) — wraps DNS in normal HTTPS traffic (RFC 8484), so it blends in with web browsing and is hard to single out or block. Every provider in the table above publishes a DoH endpoint, e.g. https://cloudflare-dns.com/dns-query, https://dns.google/dns-query, and https://dns.quad9.net/dns-query.
  • 46
  • DNS over TLS (DoT) — encrypts DNS over a dedicated TLS connection on port 853 (RFC 7858). It is easier for a network to identify (and therefore block) than DoH, but cleaner to enforce on a router or at the OS level. Android's "Private DNS" setting uses DoT.
  • 47
    48

    Encryption (DoH/DoT) and authentication (DNSSEC) are complementary: use both. Encryption hides your queries from the network; DNSSEC proves the answers are real. Neither hides the destination IP you ultimately connect to — for that you still need a VPN, and you should confirm there is no DNS leak.

    49

    Malware-blocking resolvers — security at the DNS layer

    50

    A "protective" or "secure" resolver refuses to resolve domains known for malware, phishing, or botnet command-and-control, stopping the connection before it starts. From the verified picks above, the security-filtering options are: Quad9 (9.9.9.9) blocks malicious domains using threat-intelligence feeds, Cloudflare 1.1.1.2 blocks malware (and 1.1.1.3 adds adult-content blocking), OpenDNS / Cisco filters by category, ControlD p1 (76.76.2.1) blocks malware, DNS4EU protective (86.54.11.1) blocks malware, and AdGuard DNS blocks ads and trackers. Each address and behavior above is taken from the provider's own documentation.

    51

    Best Nameservers vs. Best DNS Resolvers — What People Actually Mean

    52

    Searches for "best nameservers" usually mean one of two different things, so it is worth separating them:

    53
      54
    • Recursive resolvers — the DNS servers you set on your device or router (1.1.1.1, 8.8.8.8, 9.9.9.9, and the rest of this guide). These look up answers on your behalf. When someone asks for the "best nameservers to use," this is almost always what they want, and the picks above are the answer.
    • 55
    • Authoritative nameservers — the servers listed in a domain's NS records that publish that domain's own zone (for example, the nameservers your registrar or DNS host assigns to your website). These are a hosting decision, not something you set on your computer. You can inspect any domain's authoritative nameservers with our DNS lookup tool by querying its NS records, or hit the API directly: https://hackmyip.com/api/dns?domain=example.com&type=NS.
    • 56
      57

      For day-to-day privacy and security, "best nameservers" means a recursive resolver that validates DNSSEC, supports DoH/DoT, and optionally blocks malware — exactly the criteria the picks in this guide are ranked on.

      58

      Which DNS Server Is Fastest? Test It From Your Browser

      59

      The honest answer: it depends on where you are. Every provider above runs a global anycast network, so the fastest resolver for you is usually whichever one has capacity closest to your ISP's routing path — and that changes by country, city, and network. Benchmark averages measured from someone else's region tell you very little about your own connection, which is why we do not print made-up millisecond numbers here. Instead, measure it yourself: the test below sends real DNS-over-HTTPS queries from your browser to each resolver and ranks them by median round-trip time.

      60
      Live DNS latency test
      Measured from YOUR browser to each resolver's DNS-over-HTTPS endpoint. Results depend on your location, network and ISP.
      61

      Method note: this measures each resolver's DoH endpoint over HTTPS, which includes HTTP overhead, so absolute numbers run higher than plain UDP DNS. A warmup request is sent first so the timed runs measure the resolver rather than the TLS handshake. What matters is the ranking on your connection, not the absolute values.

      62

      In practice, the latency difference between the major resolvers is small for most connections, and cached answers are near-instant everywhere — so choose on privacy and filtering, then verify the switch worked with our DNS Leak Test.

      63

      How to Change Your DNS (and Verify It Worked)

      64
        65
      1. Pick a resolver from the table above based on your priority: privacy, security filtering, ad blocking, or family controls.
      2. 66
      3. Change it in your operating system's network settings — or on your router, which covers every device on your network at once.
      4. 67
      5. Verify the switch with our DNS Leak Test. It shows which resolver is actually answering your queries; if you still see your ISP, your router or VPN is overriding your setting.
      6. 68
      7. Test resolution with our DNS Lookup tool, or hit the free API directly: https://hackmyip.com/api/dns?domain=example.com&type=A — no key, no signup.
      8. 69
      9. Enable DoH or DoT in your browser or OS so queries are encrypted in transit. Classic DNS is plain text, readable by anyone on the network path.
      10. 70
        71

        Frequently Asked Questions

        72

        What is the best DNS server for privacy?

        73

        Quad9 and Mullvad DNS have the strongest stated privacy postures: Quad9's policy says it does not collect or record users' IP addresses at all, and Mullvad's resolver is designed for encrypted-only use with QNAME minimization. Cloudflare 1.1.1.1 is also strong — no selling or sharing, IPs truncated, logs deleted within 25 hours. Whichever you pick, confirm it took effect with the DNS Leak Test.

        74

        What is the best DNS server for speed?

        75

        There is no universal fastest resolver — anycast routing means the answer depends on your location and ISP. Cloudflare 1.1.1.1 and Google 8.8.8.8 are the usual picks when speed is the only criterion, but the only measurement that matters is from your own connection: try one for a day, then the other.

        76

        What is the best free DNS server?

        77

        Every resolver in this guide is free. As defaults: 1.1.1.1 for all-around speed and privacy, 9.9.9.9 for automatic malware blocking, AdGuard DNS for ad blocking, OpenDNS FamilyShield for family-safe browsing, and NextDNS or ControlD when you want to tune the filtering yourself.

        78

        Should I change my DNS server?

        79

        If you never changed it, you are using your ISP's resolver — which can see and log every domain you visit. Switching is free, takes minutes, is fully reversible, and can add malware blocking or content filtering on top. It is one of the highest-value, lowest-effort privacy upgrades available. Afterwards, run a DNS leak test to confirm your queries actually moved.

        80

        Does changing my DNS hide my browsing from my ISP?

        81

        Only partly. You move your query history from the ISP to the new resolver, but classic DNS is sent in plain text, so the ISP can still read queries in transit — enable DoH or DoT to close that gap. Your ISP still sees the IP addresses you connect to either way; full traffic privacy requires a VPN. See what your ISP can see for the complete picture.

        82
        Last updated: June 12, 2026