DNS over HTTPS (DoH) is a protocol, standardised in RFC 8484, that sends DNS queries inside encrypted HTTPS connections, so that network observers cannot read or alter which domain names a device looks up.
DoH explained
DoH carries DNS messages in the application/dns-message format over HTTPS on port 443 — the same port as ordinary web traffic — using HTTP/2 or HTTP/3. This makes DoH queries hard to distinguish from other web traffic and hard to block selectively. Major browsers support DoH, and current versions of Windows, macOS, iOS and Android can use encrypted DNS at system level.
DoH encrypts the query between the device and the resolver. It does not hide queries from the resolver itself, and it does not hide the destination IP address or — unless Encrypted Client Hello is used — the server name in the TLS connection that follows. Choosing a DoH resolver means trusting its operator.
In a VPN context DoH has two sides. A VPN provider can use it to protect queries between its servers and upstream resolvers. Conversely, a browser configured with its own DoH resolver may bypass the VPN provider’s resolver. If that DoH connection still travels through the tunnel, it is a configuration choice; if it leaves outside the tunnel, it is a DNS leak even though the query is encrypted.
How VPN Labs tests it
The VPN Labs leak suite treats connections to known DoH endpoints on port 443 as DNS traffic. Reports state whether the client configures DoH itself, whether browsers’ own DoH settings bypass the VPN resolver, and whether any encrypted DNS left outside the tunnel.
A DNS leak occurs when name-resolution traffic leaves a device outside the VPN tunnel, or reaches a resolver the VPN did not designate, while the tunnel is meant to be…