VPN Knowledge Explainer: What Is DoH (DNS over HTTPS)?
DoH = DNS over HTTPS (RFC 8484): it wraps DNS queries inside an encrypted HTTPS channel. Classic DNS travels as plaintext over UDP port 53 — your ISP and anyone on public Wi-Fi can read every domain…
VPN Knowledge Explainer: What Is DoH (DNS over HTTPS)?
DoH = DNS over HTTPS (RFC 8484): it wraps DNS queries inside an encrypted HTTPS channel. Classic DNS travels as plaintext over UDP port 53 — your ISP and anyone on public Wi-Fi can read every domain you look up. DoH turns that same query into ordinary HTTPS traffic on port 443, so an outside observer can't tell whether you're resolving a domain or loading a web page.
The "VPN Knowledge Explainer" series demystifies the jargon that comes up again and again in privacy tooling — this entry is DoH, the flagship of encrypted DNS.
First, why DNS is a privacy weak point
The DNS protocol dates to 1983 — privacy wasn't in the spec. Queries travel over UDP port 53 as plaintext, question and answer alike. Two consequences:
- Visible end to end: every hop between your device and the resolver (router, ISP racks, Wi-Fi hotspot) can read which domains you're asking about — the root cause of UDP DNS leaks
- Tamperable: plaintext answers can be swapped mid-flight, redirecting you to a fake site — that's DNS hijacking
Encrypted DNS exists to plug both holes: no peeking, no rewriting.
How DoH works (what RFC 8484 actually says)
RFC 8484 (published 2018) made DoH a standard rather than a vendor's private scheme. Three essentials:
- Same DNS message, new wrapper — the query is unchanged; it's packed as
application/dns-messageinto an HTTPS request body (POST) or query parameter (GET, base64url-encoded) - Sent to a fixed endpoint — a DoH server is just an HTTPS API, e.g.
cloudflare-dns.com/dns-query,dns.google/resolve - Runs on TCP 443 — same port, same TLS layer as every other web page
Point three is the real trick: encryption is the means, camouflage is the goal. Your DNS query is indistinguishable from a page load, so blocking DoH means blocking all of HTTPS — a price nobody can pay.
DoH vs DoT vs DoQ: three flavors of encrypted DNS
| Protocol | Port | Transport | Stealth | Status |
|---|---|---|---|---|
| Classic DNS | UDP/TCP 53 | Plaintext | Fully exposed | Still the default |
| DoT (RFC 7858) | TCP 853 | TLS | Encrypted but a dedicated port — instantly recognizable | Android Private DNS uses it |
| DoH (RFC 8484) | TCP 443 | HTTPS | Encrypted + camouflaged — indistinguishable from the web | Pushed by Chrome/Firefox |
| DoQ (RFC 9250) | UDP 853 | QUIC | Encrypted + low latency, still a dedicated port | Early adoption (AdGuard et al.) |
In one line: DoT is "encrypted with a nameplate on the door," DoH is "encrypted and lost in the crowd," DoQ is "the fast option of the future." For the full trade-offs between encrypted DNS flavors, see the dedicated DoH vs DoT comparison.
The upsides — and the costs: DoH is no silver bullet
Upsides: no eavesdropping (ISP can't see what you resolve), no tampering (middlemen can't rewrite answers), hard to block (blocking it means blocking all HTTPS).
Four commonly ignored caveats:
- Centralization: browsers default to Cloudflare or Google — you're trading "the ISP watches" for "a big tech watches." It's a question of whom you trust
- Browser-only scope: DoH enabled in the browser protects only the browser; every other app's DNS still runs naked
- Can create conflicts: with a VPN/proxy running, the browser's own DoH bypasses the client's DNS handling — possibly meaning "no DNS leak, but resolution skips your routing rules." See the DNS leak post
- Managed networks fight it: enterprise and campus networks often block DoH deliberately (it dodges their domain controls), so DoH may simply not work there
How DoH relates to VPNs and proxies
Complementary, not a substitute. DoH encrypts only the "look up the domain" step — the traffic itself, your real IP, and the connection to the destination remain exposed as usual. An analogy: DoH puts a lock on the phone book; a VPN/proxy puts a cover over the whole car.
Modern proxy clients go a step further: rather than just locking DNS, they absorb DNS handling into the proxy core — Fake-IP mode keeps queries from ever leaving the device, and in-tunnel resolution means the ISP can't even see that a lookup happened. DoH is the encryption layer for DNS; a VPN/proxy is the protective shell for all traffic — ideally they work together, not either/or.
How to enable it (DIY version)
- Chrome / Edge: Settings → Privacy and security → Security → Use secure DNS — pick Cloudflare or another provider
- Firefox: Settings → General → Network Settings → Enable DNS over HTTPS
- Windows 11: Settings → Network → Adapter properties → DNS server assignment → Encryption preferred
- Note: these are per-app or per-OS switches; covering the whole device uniformly still calls for a system-level approach
Related tools
- Zero fuss: all-in-one VPN MirrorSpeed hosts DNS inside the tunnel — encrypted DNS, leak protection, and hijack resistance are on by default, nothing to configure
- See and control: AirLane absorbs DNS into the proxy core, with Fake-IP / in-tunnel resolution you can toggle, and the "traffic forwarding path" view shows where every domain resolves and whether it rode the tunnel
Related: UDP DNS leaks · DNS hijacking · Fake-IP mode · QUIC leaks · WebRTC leaks