The short answer
Encrypted DNS protects the trip between your device and the resolver, so the network in between can't read or quietly change your lookups. It doesn't hide the names from the resolver, which still answers every one of them. It also doesn't decide which resolver that is, or whether the trip goes through your VPN.
You can turn it on in several places, and the place matters more than the protocol. A browser setting covers that browser, a system setting covers apps that use the system's resolver, and a router setting covers only the router's own trip upstream. Pick the layer first, then check what it does when a VPN is on.
DoH and DoT
DNS over HTTPS, or DoH, is defined in RFC 8484. It sends DNS questions and answers inside ordinary HTTPS, the same protocol web pages use, normally on port 443. To the network it looks like any other HTTPS connection to that server.
DNS over TLS, or DoT, is defined in RFC 7858. It wraps DNS in TLS on its own connection. The RFC says a DoT server listens on port 853 by default. Because that port is used for nothing else, a network can easily recognise DoT, and block it if it wants to.
Both encrypt the connection and let your device check it is talking to the server it meant to. Neither decides the route. On a full-tunnel VPN the encrypted connection goes through the tunnel like everything else. Otherwise it goes out through your normal connection, encrypted but outside the VPN.
What encryption hides, and what it doesn't
RFC 9076, the IETF's review of DNS privacy, notes that almost all DNS traffic is still sent unencrypted, and that unencrypted DNS can be seen by an eavesdropper like any other traffic. Encryption fixes that part. Nobody on the path can read the names in your lookups any more.
It leaves three things in view. The resolver still sees every name, because answering is its job. The network still sees the IP address of every site you then connect to. And when your browser starts an HTTPS connection, it usually sends the site's name in the first message of the handshake, in a form the network can read. The guide to what your provider can see covers those layers and the newer fix for the last one.
So encrypted DNS moves trust from the network to the resolver operator. The resolver you pick matters as much as turning encryption on.
In the browser
Chrome and other Chromium browsers. As of November 2026, Chrome's help says secure DNS is on by default in automatic mode. The Chromium project describes this as an upgrade to your current DNS provider's own DoH server when Chrome knows of one. If lookups fail in that mode, Chrome falls back to unencrypted DNS. If you choose a custom provider instead, Chrome won't fall back.
Firefox. Firefox calls its DoH Trusted Recursive Resolver, or TRR. Its settings include a mode that tries DoH first and falls back to the system resolver if a name fails, and a mode that only ever uses DoH. Mozilla's notes also say that on Windows, TRR is turned off when Firefox detects a VPN, unless that is changed.
Safari. Safari has no DNS setting of its own. It uses whatever the system uses.
With a VPN. A browser with a custom provider sends lookups to that provider instead of the VPN's resolver. The test then shows a public resolver and usually says "Looks fine", because a public resolver isn't your internet provider. That is a change of resolver. The test can't show whether those lookups went through the tunnel, because it only sees which resolver asked. If you want the VPN's resolver to answer, leave the browser on its default or turn secure DNS off while the VPN is on.
On Windows
Windows can use DoH for the whole system. Microsoft's networking team described the controls in 2021. Windows knows the DoH addresses of a built-in list of resolvers, Cloudflare, Google and Quad9 among them. When you set one of those servers' IP addresses as your DNS server, the settings show a choice of encryption, with or without falling back to plain DNS. Other DoH servers can be added from the command line. netsh dns show encryption lists the ones Windows knows. Microsoft's documentation for the DoH client in Windows Server 2022 and later says the fallback option tries DoH first and then falls back to plain DNS.
As of November 2026 the exact place in Settings depends on your Windows version, so follow Microsoft's help for the clicks. This covers apps that use Windows' resolver, not a browser with its own secure DNS setting. A VPN adapter brings its own DNS servers, and the leak guide explains how Windows can end up asking both.
On a Mac, iPhone or iPad
There is no field in Settings to type an encrypted DNS server into, on iOS or macOS. iOS also has nothing like Android's Private DNS box. Apple's platforms support encrypted DNS in two other ways, which Apple introduced in 2020.
- A configuration profile with a DNS Settings payload. Apple's deployment guide lists HTTPS or TLS as the protocol, plus the server's URL or name, and says it works on iOS, iPadOS and macOS among others. Resolver operators often publish one to download. You then install it in the Settings app.
- An app that uses Apple's DNS settings interface. Apple's WWDC session says the app installs the settings and you then turn them on yourself in Settings.
A configuration profile can change much more than DNS on your device. Only install one from a source you trust, and read what it says it will change before you accept it.
With a VPN. Apple's session says that while a VPN is active, lookups inside the tunnel use the VPN's DNS settings, not the system-wide encrypted DNS. So the test should show the VPN's resolver, not the profile's.
On Android
Android has a setting called Private DNS, which uses DoT. Google's Android help lists three options. Off, Automatic, and a Private DNS provider hostname. By default the device uses Private DNS with every network that can use it.
Automatic doesn't change your resolver. When Android introduced the feature, its developers wrote that devices automatically upgrade to DoT if a network's DNS server supports it. If the network's resolver can't do DoT, lookups stay as they were.
Entering a hostname picks a resolver as well as encrypting the trip to it. If Android can't reach that server, the same announcement says the network is marked as having no internet access, rather than quietly using another resolver. Google's help is clear about the limits. Private DNS protects DNS questions and answers only, and nothing else.
As of November 2026, how Private DNS combines with a VPN app depends on the app and the Android version, so check the VPN's help pages rather than assuming either one wins. Running the test with both on shows you which resolver your browser actually reaches.
iCloud Private Relay
Private Relay is part of an iCloud+ subscription. Apple's network guidance says it protects web browsing in Safari, DNS queries and unencrypted http traffic from apps. Apple's support page says the first relay, run by Apple, sees your IP address but not the site you are going to, and the second relay decrypts the site's name but doesn't see your IP address. No single party sees both.
It isn't the same as a VPN. Traffic outside those three kinds, such as an app's own HTTPS connections, isn't relayed. If you run our test in Safari with Private Relay on, the result reflects Private Relay's path, not what your other apps do.
On the router
Some routers can forward your lookups to an upstream resolver over DoT or DoH. That encrypts the trip from the router to the resolver. The trip from your device to the router stays plain DNS on your own network. Every device in the home gets the router's choice without being set up.
A VPN app on a laptop normally replaces the router's DNS with its own while connected. A VPN running on the router itself is different, and the router's documentation is the place to check what it does with DNS.
Worked example: one laptop, three settings
A MacBook on home Wi-Fi runs Firefox. Each time, the test is run in Firefox. The home network is Example Internet Provider (AS64500) and the VPN is Example VPN Network (AS64501).
| Setup | Resolver in the test | Tag | Verdict |
|---|---|---|---|
| VPN off, browser DoH off | 198.51.100.53 · Example Internet Provider | Same network as your IP | Looks fine |
| VPN on, browser DoH off | 203.0.113.53 · Example VPN Network | Same network as your IP | Looks fine |
| VPN on, browser DoH set to Cloudflare, DoH only | 192.0.2.10 · Cloudflare | Public resolver | Looks fine |
All three say "Looks fine", and they mean three different things.
In the first, the provider answers every lookup in plain DNS and sees every name. Nothing leaks around a VPN because there is no VPN.
In the second, the VPN's resolver answers, and your provider sees only a connection to the VPN server.
In the third, Cloudflare answers, over an encrypted connection that Firefox opens. On this full tunnel, that connection travels inside the VPN, so the provider can't see it either. Cloudflare now sees the names instead of the VPN.
The table told you who answered each time. Only your settings told you whether it was encrypted and which way it went.
Sources
- RFC 8484: DNS queries over HTTPS (DoH)
- RFC 7858: DNS over Transport Layer Security (TLS)
- RFC 9076: DNS privacy considerations
- Google Chrome Help: Use secure DNS
- The Chromium Projects: DNS over HTTPS
- Mozilla Wiki: Trusted Recursive Resolver settings
- Microsoft Networking Blog: New DNS over HTTPS controls in Windows (2021)
- Microsoft Learn: DNS over HTTPS client support in Windows Server
- Apple Platform Deployment: DNS Settings payload
- Apple WWDC 2020: Enable encrypted DNS
- Apple Support: Install a configuration profile
- Apple Support: About iCloud Private Relay
- Apple Developer: Prepare your network for iCloud Private Relay
- Android Help: Private DNS
- Android Developers Blog: DNS over TLS support in Android P (2018)