DNS over HTTPS explained: on or off, DoH vs DoT, and what it really hides

Since 1983, every website you open has started with a DNS question in plain text on port 53. DNS over HTTPS (RFC 8484) seals that question inside an HTTPS request on port 443. It hides the lookup from your Wi-Fi and your ISP, but not the site name your browser sends next, not the server's IP address, and not your questions from the resolver. DoH vs DoT, the Firefox canary domain, Chrome, Windows 11, iPhone, Oblivious DoH, and when to turn it on.

Every website you open starts with a postcard. Before your browser can connect to a site, it asks a DNS resolver for the site’s address, and since RFC 883 in November 1983 that question has travelled as a plain UDP message on port 53 (today’s RFC 1035, from 1987, is the version still in force). No envelope: your Wi-Fi, your router and your ISP can read it, and anyone on the path can change the answer.

DNS over HTTPS (DoH) puts that same question in a sealed envelope. It’s one of the most searched networking settings (“dns over https on or off?”, “vs tls”, “which is better”), so this post answers those questions in order, with the standards and vendor docs linked. No tests were run for this post; every claim comes from a cited source.

What DNS over HTTPS means

RFC 8484, “DNS Queries over HTTPS”, was published in October 2018 by Paul Hoffman (ICANN) and Patrick McManus (Mozilla). The idea is simple: take the exact same DNS message (the RFC calls the media type application/dns-message, “a single message of the DNS on-the-wire format”) and send it inside an ordinary HTTPS request to a resolver URL.

Two details make it more interesting than “DNS, but encrypted”:

  • The question can become a web address. DoH servers “MUST implement both the POST and GET methods”. With GET, the DNS message is base64url-encoded into a dns parameter. RFC 8484’s own example for www.example.com is /dns-query?dns=AAABAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB.
  • It’s built for HTTP caches. Clients “SHOULD use a DNS ID of 0 in every DNS request”, because a varying ID would make identical questions cache separately. HTTP/2 is “the minimum RECOMMENDED version”.

The resolver’s URL is called the URI template. That’s the “DNS over HTTPS template” Windows 11 asks you to type in.

From postcard to sealed envelope, to scale (years)199020002010202032 years of plain-text DNS only32 years: plain text onlyNov 1983: RFC 883, UDP port 531987: RFC 1035, still in forceMay 2016: DoT, RFC 7858 (853)Oct 2018: DoH, RFC 8484 (443)Feb 2020: Firefox DoH default (US)May 2020: Chrome secure DNS2022: ODoH RFC 9230, DoQ RFC 9250Mar 2026: ECH, RFC 9849
To scale. Sources: RFC 883, RFC 1035, RFC 7858, RFC 8484, RFC 9230, RFC 9250, RFC 9849; Mozilla blog (25 Feb 2020); Chromium blog (19 May 2020).

DoH vs DoT: which is better?

DNS over TLS came first: RFC 7858, May 2016. A DoT server “MUST listen for and accept TCP connections on port 853”. DNS over QUIC (RFC 9250, May 2022) also uses port 853, over UDP.

On the wire, the protection is about the same. Apple’s WWDC20 session on encrypted DNS sums it up: “Both of these use TLS to encrypt DNS messages. DoH additionally uses HTTP to improve performance.”

The real difference is the port:

DNS over TLS DNS over HTTPS
Standard RFC 7858 (2016) RFC 8484 (2018)
Port 853, only used for DNS 443, shared with every website
Encryption TLS TLS (inside HTTPS)
Network can tell it’s DNS? Yes, by the port Not by the port
Easy for admins to allow or block? Yes Harder

So DoT is easier for a network to see, allow and manage. DoH is harder to spot and harder to block; RFC 8484 itself lists “the use of the HTTPS default port 443” as one reason it’s harder for on-path devices to interfere with. Which is “better” depends on whether you’re the person on the network or the person running it.

Does DNS over HTTPS hide your browsing from your ISP?

Mostly, no. It hides the lookup. Three things stay visible:

  1. The site name in the TLS hello (SNI). Right after the lookup, your browser connects to the site, and its first message, the TLS ClientHello, normally carries the site’s name in clear text in the server_name field. Only Encrypted Client Hello (ECH) hides it.
  2. The server’s IP address, which is in the header of every packet. For a small site on its own IP, that alone gives it away.
  3. Your questions, at the resolver. Answering them is the resolver’s job. DoH doesn’t remove that trust; it moves it from your network to the resolver you send DNS to.
Who can see what: on-path network (Wi-Fi, ISP) vs your resolverWhich site youlook upSite name inTLS hello (SNI)Server IPaddressResolver seesyour questionsPlain DNSport 53Plain DNS: Which site you look up: visiblevisiblePlain DNS: Site name in TLS hello (SNI): visiblevisiblePlain DNS: Server IP address: visiblevisiblePlain DNS: Resolver sees your questions: visiblevisibleDNS over TLSport 853DNS over TLS: Which site you look up: hiddenhiddenDNS over TLS: Site name in TLS hello (SNI): visiblevisibleDNS over TLS: Server IP address: visiblevisibleDNS over TLS: Resolver sees your questions: visiblevisibleDNS over HTTPSport 443DNS over HTTPS: Which site you look up: hiddenhiddenDNS over HTTPS: Site name in TLS hello (SNI): visiblevisibleDNS over HTTPS: Server IP address: visiblevisibleDNS over HTTPS: Resolver sees your questions: visiblevisibleDoH + ECH443 + RFC 9849DoH + ECH: Which site you look up: hiddenhiddenDoH + ECH: Site name in TLS hello (SNI): hiddenhiddenDoH + ECH: Server IP address: visiblevisibleDoH + ECH: Resolver sees your questions: visiblevisibleLeft three columns: what someone on the network path can read. Right column: the resolver you send DNS to.
Encrypting DNS hides the lookup from the network, not the site name in the TLS ClientHello (hidden only with ECH, RFC 9849), not the server's IP address, and not your questions from the resolver itself. With ECH the network sees a public front name; sites that share an IP with many others reveal less. Sources: RFC 1035, RFC 7858, RFC 8484, RFC 9849.

ECH became a full standard in March 2026 as RFC 9849. It “protects the SNI and other potentially sensitive fields”; the outside of the envelope then shows only a public name of the provider’s front server. Chrome shipped ECH in version 117 (blink-dev intent to ship, September 2023) and Firefox turned it on by default in 119.

The twist: the key that ECH needs is published in DNS, in the HTTPS record. Chrome’s intent says “ECH requires keys fetched via DNS in the new HTTPS record”, and RFC 9849 §10.2 warns that “SNI encryption is less useful without encryption of DNS queries in transit.” DoH and ECH need each other.

If you send your questions to a public resolver, read its policy. Mozilla’s resolver policy for Firefox’s default DoH resolvers is a good yardstick: resolvers “must not retain that data for longer than 24 hours” (aggregates excepted), must not sell or license it, no blocking by default “unless specifically required by law”, and “a transparency report published at least yearly”.

Why networks dislike DoH, and Firefox’s canary domain

Schools, offices and parental-control products often filter at their own resolver, and companies resolve internal names there. A browser that sends DNS over port 443 to someone else walks around all of that.

Firefox’s answer is a canary domain: use-application-dns.net. A network that filters can make that one name fail (for example NXDOMAIN), and “a negative result will be a signal to disable application DNS, (i.e., DoH)”. Two details matter:

  • It only applies when DoH is on by default. “It does not apply for users who have made the choice to turn on DoH by themselves.”
  • Mozilla calls it “a limited-time measure” until a standard way to signal filtering exists.

Firefox also turns default DoH off when it detects OS parental controls or enterprise policies (Mozilla, September 2019).

One more for the admins: Microsoft’s DoH client documentation says not to enable “Require DoH” on domain-joined computers, “because the Windows Server DNS Server service doesn’t support DoH queries.”

Firefox and Chrome

  • Firefox began turning DoH on by default for US users on 25 February 2020, sending lookups to Cloudflare (NextDNS as the alternative). Canada followed in July 2021 with CIRA’s Canadian Shield. Under the hood, Firefox’s TRR modes are “2 - First” (DoH, plain DNS as fallback) and “3 - Only” (never fall back).
  • Chrome calls it “secure DNS”. By default it upgrades you only when your current resolver has a known DoH version: “Chrome’s auto-upgrade approach does not change the DNS provider” (Chromium DoH page). Managed (work) installs are opted out and controlled by policy. You can also pick a provider yourself in Settings → Privacy and security → Security → Use secure DNS.

Windows 11 and iPhone

Windows 11 (and Windows Server 2022) has a DoH client built in. Per Microsoft, the encryption option only unlocks if your DNS server is on the list of known DoH servers, which ships with Cloudflare (1.1.1.1, 1.0.0.1), Google (8.8.8.8, 8.8.4.4) and Quad9 (9.9.9.9, 149.112.112.112). For other resolvers you add the server’s IP and DoH template (Add-DnsClientDohServerAddress, or netsh dns add encryption ... udpfallback=no, per Microsoft’s networking blog).

Watch one option: “Encrypted preferred, unencrypted allowed”. Microsoft’s doc says that “you won’t be provided with any notification if DNS queries are switched from DoH to plain text.” Choose “Encrypted only” if you want to know.

iPhone and Mac support DoT and DoH natively since the 2020 releases (WWDC20), system-wide through a configuration profile or a DNS app (NEDNSSettingsManager). If a network blocks your encrypted DNS server, the Wi-Fi network is marked with a privacy warning and “connections in apps will fail rather than compromise your privacy.”

Oblivious DoH: when you don’t trust the resolver either

RFC 9230 (June 2022, Experimental, authors from Apple, Fastly and Cloudflare) splits the job in two. The query is sealed with HPKE to a target, and travels through a proxy: “Proxies know the origin and destination of an oblivious query, yet do not know the plaintext query”, while targets know “only the oblivious query origin, i.e., the Proxy, and the plaintext query.” The catch is in the RFC too: “The Target and Proxy are expected to be non-colluding.”

So: DNS over HTTPS, on or off?

  • Your own laptop or phone, on Wi-Fi you don’t control: on. Pick a resolver whose privacy policy you’ve read; your ISP’s own DoH (Chrome’s same-provider upgrade) is a fine default.
  • A work or school device: leave it to the admins. It’s their network, their filter, and probably their internal DNS.
  • Want the site name hidden too: use a browser with ECH, and keep DoH on so it can fetch the ECH key privately.

Encrypting DNS seals the postcard. It doesn’t hide the house you walk into, and it doesn’t hide anything from the post office you chose. Next up: Encrypted Client Hello, and how the last name on the envelope disappears.