How DNS over HTTPS works
DoH puts DNS queries inside an HTTPS connection so your ISP or the café Wi-Fi can't read or tamper with which sites you look up.
Layer: Application (OSI layer 7) · Port: 443 · Transport: HTTPS · Format: DNS message inside HTTP/2 · Standard: RFC 8484
DNS over HTTPS packet flow
- TLS Client → DNS Resolver: TLS handshake with dns.google:443
- HTTP/2 Client → DNS Resolver: POST /dns-query (application/dns-message)
- HTTP/2 DNS Resolver → Client: 200 OK - A 203.0.113.10 (encrypted)
Other protocols: HTTPS · SSH · TLS/SSL · DNSSEC · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · SOCKS5 · Reverse Proxy · WireGuard · IPsec