Skip to content
Back to all categories

DNS

Encrypted DNS resolvers and self-hosted filters, judged on what they log, who runs them and how they handle blocking orders.

Last reviewed · 13 entries

Before your device opens a website or an app reaches its server, it asks a DNS resolver to turn a name such as example.org into an IP address. By default that resolver belongs to your internet provider and the question travels unencrypted. Your provider, and anyone else on the path such as a hotel Wi-Fi operator, can read a timestamped list of every domain you look up, and can change the answers.

Encrypting DNS hides those lookups from the network, but the resolver you send them to still sees every one. Choosing a resolver therefore means choosing whom to trust with that list. This guide compares public resolvers on logging, ownership and how they respond to court-ordered blocking, covers tools that keep filtering on your own hardware, and explains what encrypted DNS leaves exposed.

ToolVerdictPlatforms
Quad9Recommended
AdGuard DNSRecommended
Cloudflare 1.1.1.1Use with caution
NextDNSUse with caution
Control DUse with caution
DNS4EUUse with caution
Google Public DNSNot recommended
RethinkDNSRecommended
dnscrypt-proxyRecommended
Pi-holeRecommended
AdGuard HomeRecommended
Technitium DNS ServerRecommended
UnboundRecommended

How DNS exposes you

A resolver (also called a recursive resolver) does the lookup work for you: it asks the root, top-level-domain and authoritative name servers in turn and hands back the final answer. Your device normally uses whichever resolver the network gives it, which at home is usually your internet provider's.

ObserverPlain DNS (the default)Encrypted DNS to a public resolver
Local network and internet providerEvery domain you look up, with timestamps; can block or alter answersThat you use a particular resolver; still the IP addresses you then connect to, and usually the site name (see below)
Resolver operatorYour internet provider, so the same as aboveEvery domain you look up, together with your IP address
A domain's own name serversThe resolver's address, and part of yours if the resolver sends ECSThe resolver's address, and part of yours only if the resolver sends ECS
Who sees your lookups

Lookup data has commercial value. A 2021 staff report by the US Federal Trade Commission found that two of the six large providers it studied use web browsing information to target ads, and a third reserves the right to (FTC). Courts in several European countries also order internet providers to block sites, and have begun to extend those orders to public resolvers (see blocking orders).

Encryption protocols

  • DNS over HTTPS (DoH) sends queries inside ordinary HTTPS on port 443, so they look like web traffic and are hard to block selectively. Several resolvers now also offer it over HTTP/3.
  • DNS over TLS (DoT) wraps queries in TLS on port 853. It is what Android's Private DNS setting uses. Its dedicated port makes it easy for a network to block.
  • DNS over QUIC (DoQ) is a newer standard that runs over the QUIC transport, also on port 853 (RFC 9250, 2022). Quad9, AdGuard DNS and Control D offer it.
  • DNSCrypt is an older protocol, developed outside the IETF, that encrypts and authenticates queries. Its Anonymized DNSCrypt mode passes queries through a relay so the resolver does not learn your IP address (DNSCrypt project).
  • Oblivious DoH (ODoH) applies the same idea to DoH: a proxy sees your IP address but not the query, and the resolver sees the query but not your IP address (RFC 9230, an experimental specification). Apple's iCloud Private Relay uses it.

Other terms you will see

  • DNSSEC lets a resolver check that an answer was signed by the domain owner and has not been altered. It authenticates answers; it does not encrypt anything.
  • QNAME minimisation means the resolver tells each upstream server only the part of the name it needs (for example, only .org to the root servers) instead of the full domain.
  • EDNS Client Subnet (ECS) passes part of your IP address to a domain's name servers so content delivery networks can pick a server near you. It can speed up some sites at a cost in privacy; privacy-focused resolvers leave it off or make it optional.

What encrypted DNS does not hide

  • The resolver sees everything your provider used to see. Every domain you look up, plus your IP address, now goes to the resolver operator. Choose one by what it keeps, who owns it and which courts can compel it.
  • The addresses you connect to. After the lookup, your device connects to an IP address your provider can see. For a site on its own server the address alone identifies it; behind a large content delivery network, many sites share each address.
  • The site name in the TLS handshake. Most HTTPS connections still send the site name unencrypted at the start, in a field called SNI (Server Name Indication). Encrypted Client Hello (ECH), published as RFC 9849 in March 2026, hides it, but only when both browser and site support it. Cloudflare turns ECH on by default for sites on its free plan, so observers see only cloudflare-ech.com (Cloudflare docs).
  • ECH depends on encrypted DNS. Browsers fetch a site's ECH key through DNS. A network that controls your plain DNS can drop those records and quietly switch ECH off, as Cloudflare's own documentation describes for Chrome and Firefox.
  • Apps that bring their own resolver. Browsers have a secure DNS setting that overrides the system one, and some apps and devices ignore the system setting entirely. A system-wide setting does not cover them.
  • A VPN usually replaces your DNS settings. While connected, a VPN app normally sends lookups to the VPN's own resolver inside the tunnel; Apple documents this behaviour for its platforms (WWDC20). That is usually what you want; see the VPN guide.
  • Encrypted DNS is not anonymity. It hides lookups from the network, not your identity from the sites you visit. For anonymity use Tor Browser, which resolves names inside the Tor network (see the browser guide).

Public resolvers compared

ResolverOperatorEncrypted protocolsWhat it keeps
Quad9Swiss non-profit foundationDoH (incl. HTTP/3), DoT, DoQ, DNSCryptNo IP addresses; aggregate counters per domain
AdGuard DNSAdGuard Software Ltd, CyprusDoH (incl. HTTP/3), DoT, DoQ, DNSCryptNo personal data on public servers; anonymous list of domains from the last 24 hours
Cloudflare 1.1.1.1Cloudflare, USADoH (incl. HTTP/3), DoTTruncated IP addresses and query logs for up to 25 hours; anonymised data shared with APNIC
NextDNSNextDNS Inc. (jurisdiction not stated)DoH, DoTNothing unless you enable logs; you choose retention and storage region
Control D (free resolvers)Control D, Toronto, CanadaDoH (incl. HTTP/3), DoT, DoQNo query logs on the free resolvers
DNS4EUWhalebone, Czech Republic, for an EU-funded consortiumDoH, DoTIP addresses anonymised before logging (operator's statement)
Google Public DNSGoogle, USADoH, DoTFull IP address with each query for 24 to 48 hours; sampled logs kept permanently
Operators, protocols and data kept, as stated in each privacy policy (October 2026)

Public resolvers: use with caution

These services work well and some have useful features, but each involves a trade-off in jurisdiction, transparency or blocking that you should weigh first.

Cloudflare 1.1.1.1

Use with caution
Cloudflare 1.1.1.1 website (opens in a new tab)

Public resolver from Cloudflare, a US company. An outside accounting firm has checked its privacy commitments, but Cloudflare complies with some national blocking orders, and the same company runs the network in front of many websites.

Advantages

  • Source IP addresses anonymised and deleted within 25 hours
  • Independent examination of its privacy commitments (published April 2026)
  • DoH and DoT; also reachable as a Tor onion service
  • Does not send ECS to name servers
  • Challenging Italy's Piracy Shield and appealing a €14.2 million fine
  • No account needed

Drawbacks

  • US jurisdiction
  • Anonymised query data shared with APNIC; aggregate statistics kept indefinitely
  • Complies with a Belgian DNS blocking order; lost its French appeal in March 2026
  • One company may see both your lookups and your visits to sites it proxies
  • A Croatian CA issued unauthorised certificates for 1.1.1.1 (2024 to 2025); no abuse found

NextDNS

Use with caution
NextDNS website (opens in a new tab)

Filtering DNS service with a web dashboard: you build your own blocklists, see which domains each device contacts and decide whether anything is logged. Convenient, but the resolver is closed source and filtering is tied to an account.

Advantages

  • Logs nothing unless you enable logging; you set the retention period
  • Logs can be stored in the US, EU, UK or Switzerland
  • Custom blocklists, allowlists and parental controls per configuration
  • Free up to 300,000 queries a month; Pro costs $1.99 a month
  • Open-source command-line client (MIT) for routers and desktops
  • QNAME minimisation; ECS handled without passing on your IP address

Drawbacks

  • Resolver software is not public; only client tools are open source
  • Saved configurations need an account registered with an email address
  • Above the free limit, filtering stops while lookups continue
  • Privacy policy does not state the company's jurisdiction
  • Payment by card, PayPal or cryptocurrency through BitPay; no cash

Control D

Use with caution
Control D website (opens in a new tab)

Toronto-based DNS service that grew out of the Windscribe VPN team. Its free resolvers keep no query logs and come in several filtering presets; paid profiles add custom rules and analytics.

Advantages

  • Free resolvers keep no logs or query history
  • Free presets: malware, ads and trackers, social, family and uncensored
  • Free presets for third-party lists such as Hagezi and OISD
  • DoH (including HTTP/3), DoT and DoQ
  • No account needed for the free resolvers

Drawbacks

  • Canadian jurisdiction
  • Resolver software is not public; only the ctrld forwarding client is open source
  • Custom profiles need a paid account; the privacy policy does not detail query logging

Public resolver co-funded by the EU from 2023 to 2025 and launched in June 2025. Czech security company Whalebone runs it with a consortium of European partners and keeps all resolution inside the EU.

Advantages

  • EU jurisdiction and GDPR; resolution stays inside the EU
  • Operator says client IP addresses are anonymised before logging
  • Five variants, from unfiltered to malware, child-protection and ad blocking
  • DoH and DoT; no account
  • Publishes the court orders it applies

Drawbacks

  • Court-ordered blocks apply to every variant, including the unfiltered one
  • Rate-limited and meant for individuals only
  • No DoQ or DNSCrypt
  • Part of a wider project that also provides DNS services to governments and telecoms

Encrypted DNS on your devices

Most systems can use encrypted DNS without extra software (see setting it up). These tools add local blocklists, per-app control, or protocols the system lacks, such as DNSCrypt and Oblivious DoH.

Open-source Android app that combines an encrypted DNS client, on-device blocklists and a per-app firewall. It can send lookups to any DoH, DoT, DNSCrypt or Oblivious DoH resolver, not only Rethink's own.

Platform Support

AndroidOpen sourceSelf-hostableNo account

Advantages

  • Open source (Apache-2.0); on F-Droid and Google Play
  • Supports DoH, DoT, DNSCrypt and Oblivious DoH
  • Per-app firewall rules, including by screen state and network type
  • On-device blocklists; shows which apps contact which domains
  • Can route traffic through WireGuard, including several tunnels at once
  • Rethink's resolver logs no requests and its code can be self-hosted
  • Regular releases; Android 17 supported since v0.5.6

Drawbacks

  • Android only
  • Occupies the Android VPN slot; use its WireGuard support to add a VPN
  • Rethink's default resolver runs on Cloudflare's network
  • Play Store build bundles opt-in Crashlytics crash reporting; the F-Droid build has none
  • Many settings; takes time to configure well

Open-source local DNS proxy for desktops, servers and routers. It encrypts lookups with DNSCrypt or DoH, can hide your IP address from the resolver through relays, and filters domains locally.

Platform Support

WindowsmacOSLinuxCommand lineOpen sourceNo account

Advantages

  • DNSCrypt, DoH (also over QUIC) and Oblivious DoH
  • Anonymized DNSCrypt relays hide your IP address from the resolver
  • Post-quantum DNSCrypt added in 2026 and enabled by default
  • Can route queries over Tor or a SOCKS proxy
  • Local blocklists, cloaking (custom answers), caching and DNSSEC
  • Actively maintained: version 2.1.20 released on 22 October 2026
  • ISC licence; builds for Windows, macOS, Linux, the BSDs and Android

Drawbacks

  • Configured through a text file; no official graphical interface
  • No DNS-over-TLS support
  • Anonymized DNS hides only DNS, not your other traffic

Self-hosted filtering and resolvers

A resolver or filter on your own hardware keeps your lookup history at home and covers every device on the network, including ones where you cannot install software. There are two common set-ups, with different trade-offs:

  • Forwarding. The local filter blocks what it should and passes everything else to a public resolver. Use an encrypted upstream (DoT, DoH or DoQ) so your provider cannot read the queries; the upstream resolver still sees them.
  • Recursive. The local server (Unbound, or Technitium in recursive mode) asks the authoritative name servers itself, so no single company sees your full history. Those queries leave your network unencrypted and from your own IP address, so your internet provider can read them.

Network-wide DNS filter that runs on a Raspberry Pi, an old PC, a virtual machine or in Docker, and blocks ad and tracker domains for every device that uses it. Version 6, released in February 2025, rebuilt its web interface and API.

Platform Support

LinuxOpen sourceSelf-hostableNo account

Advantages

  • Covers every device that uses it, including ones without app support
  • Version 6 has a built-in web server and REST API; no PHP or lighttpd
  • Optional DHCP server and per-group blocklists
  • Query log stays on your own hardware
  • Frequent releases (Core v6.5 in October 2026)

Drawbacks

  • No built-in encrypted upstream; pair it with Unbound or an encrypted DNS proxy
  • Fixed 15 security advisories in October 2026; update promptly
  • Devices with their own encrypted DNS setting bypass it
  • Needs an always-on machine and some Linux administration

Self-hosted DNS filter from AdGuard, shipped as a single program for Linux, macOS, Windows, the BSDs and routers. Unlike Pi-hole, it can encrypt upstream queries and serve encrypted DNS to your devices without add-ons.

Platform Support

WindowsmacOSLinuxOpen sourceSelf-hostableNo account

Advantages

  • Encrypted upstreams: DoH, DoT, DoQ and DNSCrypt
  • Can serve DoH and DoT to your own devices
  • Per-client settings, parental controls and a built-in DHCP server
  • Open source (GPL-3.0); can run without root privileges
  • Version 1.0 beta (October 2026) brings a redesigned interface

Drawbacks

  • From version 1.0, minor releases may include breaking changes
  • Serving encrypted DNS to your devices needs a domain name and certificate
  • August 2026 release fixed a DoQ resource-exhaustion flaw; keep it updated

Open-source DNS server for home and small networks. It can act as a recursive resolver, a filter that forwards over encrypted protocols, or an authoritative server, all managed from a web console.

Platform Support

WindowsmacOSLinuxOpen sourceSelf-hostableNo account

Advantages

  • Recursive resolution or encrypted forwarding over DoH, DoT or DoQ
  • Serves DoH, DoT and DoQ to your own devices
  • DNSSEC validation; blocklists that update daily
  • Can send upstream queries over Tor through a SOCKS5 proxy
  • Clustering to manage several servers from one console
  • GPL-3.0; runs on Windows, Linux, macOS, Raspberry Pi and Docker

Drawbacks

  • Needs the .NET runtime; no support for Raspberry Pi 1 or Zero
  • Recursive mode sends unencrypted queries your provider can read

Validating, recursive and caching resolver from NLnet Labs, a Dutch non-profit. Often paired with Pi-hole so that lookups are resolved at home rather than by a public resolver.

Platform Support

macOSLinuxCommand lineOpen sourceSelf-hostableNo account

Advantages

  • No third-party resolver sees your full lookup history
  • DNSSEC validation and QNAME minimisation
  • Supports DNS over TLS and DNS over HTTPS
  • BSD licence; maintained by a non-profit
  • Step-by-step set-up guide in Pi-hole's documentation

Drawbacks

  • Queries to authoritative servers are unencrypted and visible to your provider
  • The first lookup under an unfamiliar top-level domain can take a second or more
  • Configured by text file; no web interface
  • 49 CVEs fixed across four 2026 releases; update promptly

Court-ordered blocking of public resolvers

Public resolvers used to be an easy way around blocks imposed on internet providers. Since 2021, rights holders in Europe, mostly music labels and sports broadcasters, have taken the resolvers themselves to court to make them block piracy domains. The situation as of October 2026:

  • Germany. Sony Music obtained an order against Quad9 in 2021. Quad9 lost the early rounds, then won on appeal at the Higher Regional Court of Dresden in December 2023, which found that a resolver is a neutral intermediary. The ruling is final (TorrentFreak).
  • France. At the request of Canal+, Paris courts ordered Cloudflare, Google and Cisco (2024) and Quad9 (December 2024) to block named domains. Cisco withdrew its OpenDNS resolver from France rather than comply, and in March 2026 the Paris Court of Appeal rejected the appeals of all three (TorrentFreak). Quad9 applied its order worldwide, then announced it will stop serving France on 24 November 2026 after losing a penalty case brought by beIN Sports (TorrentFreak).
  • Belgium. An order obtained by DAZN requires Cloudflare, Google and OpenDNS to block pirate football streams. Google and Cloudflare complied; a Brussels court upheld the order in August 2026, and Cisco has said it will withdraw OpenDNS from Belgium again (TorrentFreak).
  • Italy. The Piracy Shield system was extended to DNS providers and VPNs. Cloudflare refused to filter through 1.1.1.1, and the regulator AGCOM fined it about €14.2 million in early 2026; Cloudflare is appealing (TorrentFreak).
  • DNS4EU applies court-ordered blocks to all of its variants, including the unfiltered one, and publishes the orders (DNS4EU).

Orders are issued country by country, but a resolver that cannot reliably tell where its users are may block for everyone or leave the country altogether. Quad9 says it will never block a domain in a way that hides the fact, and lets you search its blocked domains on its website.

Setting it up on your devices

  • Android 9 and later. Open Settings, then Network & internet, then Private DNS (the exact path varies by manufacturer) and enter the resolver's DNS-over-TLS hostname, for example dns.quad9.net. With a hostname set, Android does not fall back to unencrypted DNS; if the server cannot be reached, it reports no internet access (Android Developers).
  • iPhone, iPad and Mac. Install an encrypted DNS configuration profile from your resolver (Quad9, AdGuard DNS and Control D publish them) or an app that sets encrypted DNS, then select it in the DNS settings under General. A connected VPN takes precedence (Apple, WWDC20).
  • iCloud Private Relay. Private Relay normally sends lookups through Oblivious DoH, but an encrypted DNS profile you installed takes priority. A plain DNS server typed into network settings is not used for Private Relay traffic (Apple).
  • Windows 11 and Windows Server 2022. In network settings, edit the DNS server assignment, enter the resolver's addresses and choose Encrypted only (DNS over HTTPS). Windows recognises Cloudflare, Google and Quad9 addresses; add others with the Add-DnsClientDohServerAddress PowerShell command. Avoid the "encrypted preferred" option, which falls back to plain DNS without telling you (Microsoft).
  • Linux with systemd-resolved. In /etc/systemd/resolved.conf set DNS=9.9.9.9#dns.quad9.net and DNSOverTLS=yes. The part after # is used to check the server's certificate. The default is no, and opportunistic mode can be downgraded by an attacker (man page). For DoH or DNSCrypt, run dnscrypt-proxy instead.
  • Browsers. Firefox and Chromium-based browsers have their own secure DNS setting. It applies only to the browser and overrides the system resolver, so either set the same resolver in both or leave the browser on the system default.
  • The whole network. Point your router's DHCP settings at a Pi-hole, AdGuard Home or Technitium server so every device uses it, and give that server an encrypted upstream.

Tips and common mistakes

  • Check your set-up. After changing settings, run a leak test such as dnsleaktest.com or Mullvad's connection check and confirm that only the resolver you chose appears.
  • Do not mix resolvers. Setting a private resolver as primary and your provider's or Google's as secondary sends some lookups to each, so both see part of your history.
  • Prefer strict modes. Settings that only "prefer" encryption fall back to plain DNS silently when encryption fails, and an attacker on the network can make it fail.
  • Keep local names local. Devices constantly look up names that only mean something on your home network, such as printer names and reverse lookups of 192.168.x.x addresses. Sent to a public resolver, they reveal your network layout. A local resolver answers them at home, and Quad9 now answers them itself (Quad9).
  • Let your VPN handle DNS while connected. Keep the VPN app's own DNS (and its blocklists, if it offers them) rather than forcing a different resolver through the tunnel; see the VPN guide.
  • Update self-hosted software. Pi-hole and Unbound both shipped large batches of security fixes in 2026. Do not expose a home resolver to the internet, where strangers can use and abuse it.
  • Blocklists are not a privacy guarantee. DNS blocking misses trackers served from the same domain as the site and does nothing about browser fingerprinting; use a hardened browser too (browser guide).
  • Have a fallback. Court orders can force a resolver to block in your country or leave it, as Quad9 is doing in France (see blocking orders).

Further reading