DNS over TLS (DoT)
DNS over TLS (DoT) carries DNS messages inside a TLS-secured TCP connection on port 853, giving the stub-to-resolver hop the same confidentiality and integrity guarantees as HTTPS.
In plain English
Plain DNS is unauthenticated and unencrypted, so anyone on the network can see and tamper with your lookups. DoT wraps each DNS connection in TLS, so the resolver proves who it is and the queries themselves are unreadable to onlookers.
How it works
DoT is defined in RFC 7858 and uses a dedicated TCP port 853. The client opens a TLS connection to the resolver, validates the certificate (commonly pinned via the SPKI mechanism in RFC 8310), and sends standard DNS-over-TCP framing inside the TLS tunnel. Connections are kept alive and reused for many queries, so the TLS handshake cost amortises quickly. Because the port is well known, DoT is straightforward to deploy in enterprise networks but is also easy for hostile networks to recognise and block — which is why DoH on port 443 often wins on adversarial Wi-Fi. Android ships DoT as the Private DNS system setting, and most modern stub resolvers including systemd-resolved and Unbound can act as DoT clients.
Related terms
- DoH — the HTTPS-tunnelled variant
- DoQ — the QUIC-tunnelled variant
- DNS — the underlying protocol
- DNS leak — risk when DoT is bypassed
- Protective DNS — common deployment context
- Recursive DNS — what a DoT client talks to
SecDNS perspective
SecDNS exposes a unique DoT hostname per device, which Android picks up directly through its Private DNS setting and applies on both Wi-Fi and cellular.