DNS over HTTPS (DoH): What It Is and Should You Use It?
Most websites use HTTPS, which hides the pages you read and the data you type from anyone watching the network. Yet before your browser can even connect to a site, it has to look up the name through DNS, and traditional DNS queries travel in plain text. Anyone on the path, such as a Wi-Fi operator or your provider, can see which domains you ask for. DNS over HTTPS, or DoH, closes that gap by wrapping DNS queries in encrypted HTTPS connections.
The problem with classic DNS
As explained in What Is DNS?, your device sends a short question to a resolver and gets an answer. Traditional DNS uses UDP or TCP on port 53 without encryption or authentication. That has three consequences. Observers can read the queries and build a list of the sites you visit. Attackers or networks can modify the answers, sending you to a different address. Finally, networks can easily block or redirect specific lookups, which is how some censorship and captive portals work.
How DNS over HTTPS works
DoH, defined in RFC 8484 and published in 2018, sends each DNS question as an HTTPS request to a resolver's web endpoint. The question is carried in either a binary format or, for some services, a JSON structure, and the answer comes back the same way. Because the connection uses standard TLS on port 443, the content is encrypted and the resolver's identity is verified by its certificate. To a network observer it looks like ordinary HTTPS traffic to the resolver's server, so they can see that you use that resolver but not which names you ask for.
Our own DNS Checker uses this method: your browser sends HTTPS requests to Cloudflare's DoH endpoint and reads the JSON answers.
DoH vs DNS over TLS and other options
- DNS over TLS (DoT), RFC 7858, also encrypts DNS but uses a dedicated port, 853. Network administrators can easily identify and manage it, which is helpful for enterprises. Android's "Private DNS" setting uses DoT.
- DNS over QUIC (DoQ) is a newer approach with lower latency in some conditions.
- DNSCrypt is an older encrypted DNS protocol with a smaller user base.
- DNSSEC is something different: it signs DNS data to prove authenticity but does not encrypt it. The two can be used together.
What DoH protects
- It hides your DNS queries from other users on the same Wi-Fi network and from intermediaries between you and the resolver.
- It prevents simple tampering with DNS answers in transit.
- It can bypass basic DNS-based blocking on a network, which may be desirable or not, depending on the context.
What DoH does not protect
- It does not hide your activity from the resolver. The resolver you choose still sees your queries and your IP address. DoH moves that visibility from your provider to someone else, so choose a resolver whose privacy policy you trust.
- It does not hide the sites you connect to. After the lookup, your device connects to the destination's IP address, which an observer can see and often map to a site. In TLS, the server name has traditionally been visible in the handshake unless Encrypted Client Hello is used.
- It does not replace a VPN. A VPN encrypts all traffic and changes your visible IP address; DoH only secures name lookups. See What Is a VPN?
- It does not make a malicious or compromised website safe.
Arguments for and against
Privacy advocates welcome DoH because it removes a long-standing blind spot. Critics point out that it can concentrate lookups with a few large providers, complicate enterprise and parental filtering that relies on DNS, and make network troubleshooting harder. Browsers handle this by letting you choose the resolver and by disabling DoH automatically when a network signals that it uses special DNS configuration, such as a managed corporate setup.
How to enable DoH
- Firefox: Settings, Privacy & Security, "DNS over HTTPS", then pick a provider or enter a custom address.
- Chrome and Edge: Settings, Privacy and security, Security, "Use secure DNS", then choose a provider.
- Windows 11: Settings, Network & internet, your connection's DNS server assignment, then choose an encrypted DNS option for supported servers.
- iOS and macOS: install a configuration profile from a resolver that supports DoH or DoT.
- Android: Settings, Network, Private DNS, then enter the host name of a DoT-capable resolver.
- Router: some routers and software such as Pi-hole forwarders can proxy DNS upstream over DoH or DoT, which protects every device in the home.
After enabling it, run a DNS leak test or compare what the IP lookup shows to make sure traffic still works as expected.
Should you use it?
For most people, yes. Turning on encrypted DNS costs nothing, rarely slows browsing noticeably and removes an easy source of information for anyone who shares your network. It is especially useful on public Wi-Fi. Choose a reputable resolver, understand that it replaces your provider as the party that sees lookups, and combine it with other measures from our privacy checklist. If you rely on a managed network that filters DNS for safety, such as a school or workplace, follow its policies.
Conclusion
DNS over HTTPS encrypts name lookups and verifies the resolver, defending against eavesdropping and tampering on the network path. It does not make you anonymous and shifts trust to the resolver you choose, but it is a low-effort privacy improvement with few downsides. Enable it in your browser or device, and pick a resolver you trust.
Frequently asked questions
Does DoH make my internet slower?
Usually no. The first connection adds a small setup cost, but resolvers reuse connections, and good public resolvers are fast.
Is DoH the same as using a VPN?
No. DoH protects only DNS lookups, whereas a VPN encrypts all your traffic and changes your visible IP address.