What Is DNS over HTTPS (DoH)? What It Hides, What It Doesn’t, How to Turn It On

Key Takeaway:
Every time you open a website, your device first asks a DNS server for its address, and normally that question travels unencrypted, so your provider, your Wi-Fi network and anyone in between can read the list of sites you visit. DNS over HTTPS (DoH) sends those lookups inside an encrypted HTTPS connection instead. It’s built into Chrome, Edge, Firefox and Windows 11, often only a setting away. It hides the site names you look up, but not the IP addresses you connect to, and it doesn’t replace a VPN.

DNS is the internet’s phone book: it turns names like examineip.com into the addresses computers connect to. If that’s new, start with what DNS is and how it works. This page covers the privacy problem with ordinary DNS, what DoH fixes, and how to turn it on and check that it’s working.


The Problem With Ordinary DNS

Classic DNS was designed in the 1980s, without encryption. A lookup for bank.example goes out as a small plain-text message, usually to your provider’s DNS server, and the answer comes back the same way. That means:

  • Your provider sees every site name you look up, even when the site itself uses HTTPS. That’s the subject of our article on what your ISP’s DNS sees.
  • Anyone on the same network can read the lookups too: café Wi-Fi, a hotel network or a compromised router.
  • Answers can be altered on the way. A network can redirect a name to a block page or to a different server. That’s how some censorship and some router attacks work; see router DNS hijacking.

What DNS over HTTPS Does

DoH, standardised in 2018 as RFC 8484, sends your DNS questions to a resolver over HTTPS, the same encrypted protocol that protects web pages. To anyone watching the network, a DoH lookup looks like ordinary encrypted web traffic to the resolver. They can see that you’re talking to, say, Cloudflare or Google’s DNS service, but not which names you’re asking about, and they can’t tamper with the answers.

There’s a close relative, DNS over TLS (DoT, RFC 7858), which encrypts lookups in the same way but on its own port, 853. That makes it easier for networks to spot and block. Android’s “Private DNS” setting uses DoT.

What DoH doesn’t hide

WhoWith ordinary DNSWith DoH
Your provider or Wi-Fi networkEvery site name you look up, plus the addresses you connect toThe addresses you connect to, and often the site name in the connection’s opening message (see below)
The DNS resolver you useEvery site name you look upEvery site name you look up, so choose one whose policy you trust
The websiteYour IP addressYour IP address (unchanged)

Two leaks remain. First, the IP address you connect to is always visible to your network, and for large sites it gives away the destination. Second, when your browser starts an HTTPS connection it usually announces the site’s name in plain text (a field called SNI). A newer standard, Encrypted Client Hello, hides that too, but only when both the browser and the site support it. So DoH removes the easiest record of your browsing, not every trace.


Who Provides It

Most large public DNS services support DoH, including Cloudflare (1.1.1.1), Google (8.8.8.8, at https://dns.google/dns-query) and Quad9 (9.9.9.9), and so do many internet providers. They differ in what they log and whether they block malicious sites; our page on 8.8.8.8 and how it compares with 1.1.1.1 and 9.9.9.9 sets out their published policies side by side.


How to Turn On DNS over HTTPS

Chrome and Edge

In Chrome, open Settings, then Privacy and security, then Security, and find Use secure DNS under Advanced. Google says it’s on by default in automatic mode, which uses DoH only if your current DNS provider supports it and otherwise falls back to ordinary DNS. To be sure of encryption, choose a provider from the list, such as Cloudflare or Google; with a chosen provider, Chrome doesn’t fall back. Edge has the same option under Settings, then Privacy, search and services. On a work-managed device, or one with parental controls, the setting may be unavailable.

Firefox

Mozilla began turning DoH on by default for US users in February 2020. Everywhere else, open Settings, then Privacy & Security, scroll to DNS over HTTPS, and choose a stricter protection level and a provider.

Windows 11 (the whole computer)

Browser settings only cover that browser. To encrypt lookups for every app, open Settings, then Network & internet, select your Wi-Fi or Ethernet connection, and under DNS server assignment choose Edit. Switch to Manual, turn on IPv4, enter a DoH-capable server such as 1.1.1.1 or 8.8.8.8, and turn on its encryption option. Depending on your version of Windows, that’s a DNS over HTTPS switch set to On, or a menu set to Encrypted only (DNS over HTTPS).

Android

Android uses DoT rather than DoH, which is just as good for this purpose. Open Settings, search for Private DNS, choose “Private DNS provider hostname” and enter one.one.one.one or dns.google.

iPhone and Mac

Apple doesn’t offer a simple switch. Encrypted DNS is set up through a configuration profile or a DNS app from a provider. Cloudflare’s 1.1.1.1 app is one example. Within a browser, Chrome’s and Firefox’s own settings work on a Mac as above.


🔍 Prove It’s Working

If you use Cloudflare, visit one.one.one.one/help: it shows whether your lookups are reaching Cloudflare and whether they arrive over DoH or DoT. For any provider, the free lesson What Your Provider Sees shows how to find out which resolver actually answers you, and how to confirm encryption step by step. If the answer is still your provider, a setting somewhere is overriding yours: often a VPN, or a router that intercepts DNS. Our guide to checking your DNS settings helps track it down.


DoH vs a VPN

DoH protects one thing: your DNS lookups. A VPN encrypts all your traffic to the VPN server and replaces your IP address, so your provider sees neither the names nor the addresses you visit; the VPN company does instead. If you use a VPN, its DNS settings normally take over from yours, and whether they really do is what a DNS leak is about. More in does a VPN hide your IP address?


⚠️ The Downsides

  • It can switch off network filters. Parental controls, school filters and work security tools that rely on DNS stop working if a browser sends its lookups elsewhere. That’s why browsers back off on managed devices.
  • It concentrates lookups. Instead of thousands of providers each seeing their own customers’ lookups, a handful of large DNS services see a large share of everyone’s. Pick a resolver whose logging policy you’re comfortable with.
  • Internal names can break. On an office network, names that only the company’s own DNS knows may stop resolving if your browser bypasses it.

Frequently Asked Questions

Should I turn on DNS over HTTPS?

On your own devices, yes. It’s free, it costs almost nothing in speed, and it removes the simplest record of your browsing from your network. Leave it to the administrator on work devices.

Does DoH make browsing faster?

Not noticeably either way, in most cases. Speed depends more on how close and quick the resolver is than on the encryption. If your connection feels slow, see how to fix slow internet.

Can my provider still see what sites I visit with DoH?

It can’t read your lookups, but it can still see the IP addresses you connect to and, unless Encrypted Client Hello is in use, the site names your browser announces when it connects. DoH makes tracking harder; a VPN goes further.

Is DoH the same as a VPN?

No. DoH encrypts only DNS lookups and leaves your IP address unchanged. A VPN encrypts all your traffic to the VPN server and gives you a different IP address.

Can my employer block DoH?

Yes. Organisations can block known DoH servers and manage browser settings centrally, and browsers respect those policies on managed devices.


Related Reading

Scroll to Top