DNS over HTTPS vs VPN looks like a choice between two privacy tools, but they answer different questions: encrypted DNS decides who can read your lookups, a VPN decides where your connection appears to come from. A lookup is the question your device puts to a resolver, a service that finds the address behind a name, before it connects to a site. On plain DNS the question and the reply travel as readable messages on port 53. DoH (DNS over HTTPS, RFC 8484), DoT (DNS over TLS, RFC 7858) and DoQ (DNS over QUIC, RFC 9250) put them in an encrypted channel to the resolver.
Encrypted DNS moves your lookups out of sight of the local network and the ISP and hands them to the resolver you picked.
Who sees a plain DNS lookup
Four parties can read a plain lookup:
- The local network: café, hotel, office or home router. It reads every name, and because plain DNS does not authenticate the resolver, it can also answer in its place.
- Your ISP. Unless you changed it, your router uses the ISP's resolver, so one company carries the lookup and answers it.
- The resolver operator. It sees every lookup your device sends, and its own policy decides whether it logs them.
- The domain's own name servers. They see the resolver, not you, unless the resolver passes on part of your address.
What DoH, DoT and DoQ change
All three carry the same DNS messages inside an encrypted channel. When the client also checks the resolver's identity (strict mode), nothing along the path can read a lookup or swap the answer. They differ in how they look from the path:
- DoT uses its own TCP port, 853, so it announces itself and one firewall rule can block it.
- DoH is HTTPS on port 443 and can ride on a connection that also carries web traffic, so devices on the path find it harder to interfere or to profile the traffic. The price is HTTP itself: cookies and header patterns can link requests to one client.
- DoQ runs DNS straight on QUIC over UDP port 853, avoiding the head-of-line blocking of one TCP stream, and does not try to dodge blocking.
Is DNS over HTTPS safe? Safe from the network, not from the resolver
Pointing a device at Cloudflare, Google or Quad9 swaps the ISP's resolver for another operator's. That operator has its own retention policy and jurisdiction and sees the lookups of every device you point at it. What improves is the position: the ISP's resolver sat on your network path, while a public resolver reached over an encrypted channel leaves the path nothing to read. An ISP can offer an encrypted resolver too, which shields you from the Wi-Fi and leaves the ISP reading every name.
Two things sit beyond a device's encryption. The resolver still has to ask the domain's own name servers, and encrypting that hop is an experimental effort (RFC 9539). Some resolvers, Google Public DNS and Quad9's 9.9.9.11 service among them, pass a truncated copy of your address to those servers through EDNS Client Subnet (RFC 7871), so answers fit your location.
What stays visible after DNS is encrypted
- The destination address. The device connects to the address it looked up, so the ISP sees it; on a CDN many sites share an address, which narrows the site down without naming it.
- The server name. Unless the site and the browser use Encrypted Client Hello, it still travels in the TLS handshake.
- Packet sizes and timing, unless the client asks for DNS padding.
- That you use encrypted DNS. DoT shows by its port, and DoH to a well-known resolver address is easy to recognize, so a network can block it, and the device either reverts to plain DNS or fails, depending on its mode.
DNS over HTTPS vs VPN: two different jobs
With a VPN, observers on the path see one tunnel, and the VPN operator takes their place: your address, the destination addresses and, through the provider's resolver, the names. Encrypted DNS leaves your address and connections as they were: the website still sees where you connect from, and the ISP still sees every destination address.
Combined, they split the knowledge. With DoH to a public resolver sent through the tunnel, the VPN operator knows your address and destinations but not the names, and the resolver knows the names but sees the VPN's address instead of yours. With the VPN's own resolver, one company holds everything.
Encrypted DNS by setup: what it covers and what it misses
| Setup | Covers | Misses |
|---|---|---|
| Plain DNS to the ISP's resolver | Nothing | Lookups are readable and rewritable by anyone along the path |
| Opportunistic DoT or DoH (Android Automatic, Chrome automatic) | Passive reading, while the network allows encryption | A network that blocks encryption forces a fallback to plain DNS |
| Strict DoT, DoH or DoQ to a public resolver | Reading and rewriting by the local network and the ISP | The resolver still reads everything; destination addresses stay visible |
| DoH in one browser only | That browser's lookups | Every other app, which uses the system resolver |
| VPN with the provider's resolver | Names and destinations, for everyone outside the tunnel | The VPN operator sees names, address and destinations |
| VPN with a DNS leak | Destinations, for everyone outside the tunnel | Names still reach the ISP's resolver |
Where encrypted DNS breaks
- VPN leaks. A DNS leak is a lookup that leaves the device outside the tunnel for a resolver the VPN did not choose, usually the ISP's. Split tunnelling, IPv6 traffic the tunnel does not carry and apps with their own resolver are the usual routes, and the DNS leak guide goes through them.
- Split DNS and internal names. Internal hostnames exist only on your own resolver. A browser that sends every lookup to a public resolver over DoH cannot resolve them and discloses them to that operator. Firefox has an excluded-domains policy for this, Chrome upgrades only to the DoH service of the resolver the system already uses, and Apple's profile can scope an encrypted server to listed domains.
- Browser, OS and Android. A browser that carries its own DoH skips the filter on your router or Pi-hole unless it stands down. Firefox's automatic mode stands down for parental controls, an enterprise policy, a VPN or proxy and the canary domain use-application-dns.net, which a network can refuse to resolve to opt out. Android's Private DNS is system-wide DoT; Automatic mode upgrades only if the network's resolver supports it, and a provider hostname turns an unreachable provider into a network with no internet.
- Discovery. DDR (RFC 9462) lets a device that knows only a resolver's address ask it, in plain DNS, for its encrypted endpoint, so an attacker on the path can drop the question and keep the device on plain DNS. Apple devices have used it automatically since iOS 16 and macOS 13, but its verified mode cannot work for a home router on a private address. With DNR (RFC 9463) the network announces an encrypted resolver of its own through DHCP or router advertisements, and a device that follows it encrypts to the resolver the network chose.
- Filtering and managed devices. School, office and family filters work by answering lookups differently, so lookups sent elsewhere over encryption escape them. Administrators answer with policies: Chrome's off, automatic or secure DoH mode, a Firefox DoH policy with a lock and excluded domains, Group Policy on Windows 11 and a no-disable flag in Apple's profile.
Find out which resolver your lookups reach
A website cannot tell whether your lookups are encrypted: its name servers talk to your resolver, not to your device. What a page can learn is which resolver asks on your behalf, and the DNS Privacy card in the Privacy & Trust Index scan reports exactly that. Its results include ISP DNS, PUBLIC DNS and THIRD-PARTY DNS, and for a public resolver it notes that encryption cannot be confirmed from there.
- Scan on your normal connection, then again after you change the resolver or switch on the VPN, and compare the DNS Privacy card. ISP DNS means the provider's own resolver is answering.
- Set encrypted DNS to strict, with no fallback, so a blocked encrypted path shows up as failed lookups instead of silent plain DNS. Settings per platform are in the DNS encryption guide.
Top comments (0)