When DNS runs inside TLS the query names disappear from the wire, but the resolver address, the SNI in the handshake, the connection timing and the sizes of the exchanges remain. This capture shows a client using DNS over HTTPS and is tagged with dns-over-https as well; that page carries the full description of how the traffic is recognised.
Encrypted DNS traffic (DoH) to a public resolver, inspected for the metadata that remains visible when queries are inside TLS.
DNS over HTTPS (DoH) Traffic Pattern Detection
17 TLS connections to 10.99.0.21:443 simulating DNS-over-HTTPS (DoH) traffic patterns. 15 connections send POST requests with Content-Type: application/dns-message headers at 500ms intervals, followed by 2 normal HTTPS requests for comparison. All traffic is TLS-encrypted, so the DoH-specific headers are not visible in the capture. However, the traffic pattern is distinguishable: short-lived TLS sessions at regular intervals with small payload sizes (typical of DNS query/response) versus longer sessions with larger payloads (normal web browsing). 10 TLS SNI entries are visible in the ClientHello messages. This demonstrates why DoH detection must rely on traffic analysis patterns rather than content inspection.