DNS privacy and DoH: what your browser reveals before you connect
Every site you visit starts with a DNS lookup. Learn what your browser's DNS resolver reveals, how DNS over HTTPS changes the picture, and how to check which resolver you are actually using.
Why DNS matters for privacy
Before your browser can load a page, it must translate the hostname into an IP address. That translation is a DNS query, and by default it is sent in plaintext to a resolver, often one chosen by your operating system or ISP.
A plaintext DNS query exposes the hostname you are looking up to anyone on the network path: your ISP, a captive portal, or an attacker on public Wi-Fi. Even with HTTPS, the DNS step happens first and is unencrypted.
This is the gap DNS over HTTPS (DoH) and DNS over TLS (DoT) close: they encrypt the query between your browser and the resolver, hiding the hostname from the local network.
What can still be seen
Encryption protects the query from the local network, but not from the resolver itself. Whoever runs your DoH resolver still sees every hostname you look up. Choosing a resolver is therefore a trust decision, not just a technical one.
Other signals leak too: SNI in TLS handshakes (unless ECH is used), OCSP checks, and the IP addresses you connect to. DNS privacy is one layer, not the whole stack.
Your browser may also fall back to the system resolver in some cases, bypassing DoH entirely. Captive portals and enterprise networks often force this.
- Plaintext DNS: hostname visible to ISP and local network
- DoH/DoT: hostname hidden from local network, visible to resolver operator
- SNI: hostname often sent in cleartext during TLS handshake
- IP address: destination IP reveals the service even if hostname is hidden
How to check your resolver
Run the DNS leak test on this site. It queries a controlled domain and reports which resolver answered, whether DoH is in use, and the resolver's operator.
Compare results with your VPN on and off. If the resolver changes to your ISP while the VPN is on, your DNS is leaking outside the tunnel.
Check your browser's secure DNS settings. Chrome, Firefox, and Edge each expose a setting to enable DoH and choose a provider.
Choosing a resolver
Pick a resolver whose privacy policy you trust and that supports DNSSEC validation. Public options include Cloudflare (1.1.1.1), Quad9 (9.9.9.9), and Google (8.8.8.8), each with different trade-offs around logging and filtering.
Avoid resolvers that monetize query data. If you are unsure, prefer one that publishes a clear no-logging policy and undergoes independent audits.
Enterprise and school networks may override your choice. Test rather than assume.
- Cloudflare 1.1.1.1: fast, privacy-focused, minimal logging
- Quad9 9.9.9.9: blocks known malicious domains, no logging
- Google 8.8.8.8: reliable, but tied to a large data company
- NextDNS: configurable filtering, account-based
- Self-hosted: full control, more maintenance
How to enable DoH
Firefox: Settings, Privacy & Security, enable DNS over HTTPS and choose a provider. Chrome: Settings, Privacy and security, Security, use secure DNS. Edge: similar path under Privacy, search, and services.
On mobile, both iOS and Android support encrypted DNS profiles, though setup varies by version.
Verify with the test after enabling. A misconfigured client can silently fall back to plaintext.
What this site measures
Our DNS test performs a real lookup through your browser and reports the resolver that answered, along with whether the connection used HTTPS. It does not store results on our servers.
Results reflect this browser, on this network, at this moment. Captive portals, VPNs, and enterprise policies can change the answer.