DNS over TLS on SecDNS
SecDNS exposes RFC 7858 DNS over TLS endpoints on every resolver region, with native Android Private DNS compatibility and the same filtering pipeline that runs on our DoH and plain-DNS paths.
What it is
DNS over TLS (DoT) is the original encrypted DNS protocol, standardised in RFC 7858. It runs over a dedicated TCP port (853) and wraps the normal DNS wire format inside a TLS connection. To an observer, the traffic is clearly "encrypted DNS" — the port itself reveals the application — but the contents (queries, answers, EDNS options) are confidential.
DoT is the default encrypted DNS protocol on Android via the OS-level "Private DNS" setting introduced in Android 9 (Pie). Linux servers using systemd-resolved, stubby, or unbound also commonly use DoT.
How it works
A DoT session is conceptually simple:
- The client opens a TCP connection to the resolver on port 853.
- The client performs a TLS 1.2 or 1.3 handshake. The server certificate proves the resolver's identity; the client validates it against the configured hostname.
- The client sends DNS messages in the standard wire format, length-prefixed, just like DNS over TCP — but now inside the TLS session.
RFC 7858 reserves port 853 for this purpose and recommends TLS 1.2 minimum. The protocol supports persistent connections, so a single TLS session can carry thousands of queries before being torn down.
On SecDNS, DoT endpoints take this form:
tls://dns.secdns.io
For per-profile identity, the hostname can include a profile token (profile-id.secdns.io) so that SNI alone is enough to route the query into the right policy and log without a separate authentication step.
Why it matters
DoT solves the same problem as DoH — keeping DNS queries private from network observers — and it does so with two practical advantages in some environments:
- Native Android support. No app, no MDM payload, no third-party agent. Open Settings, find Private DNS, enter the hostname, save. The OS handles certificate validation and reconnection.
- Clean audit signal. A network operator who wants to know "is DNS encrypted on this network?" can answer the question by looking at port 853, without doing deep packet inspection. That matters in regulated environments where the use of encryption needs to be auditable even if the contents are not.
The trade-off is that the same property — clearly identifiable as DNS traffic — makes DoT easier to block. Networks that want to force users onto their own resolver can drop port 853 outbound. If that is a concern, fall back to DoH on port 443, which is harder to block without breaking the web.
How SecDNS implements it
| Property | SecDNS DoT |
|---|---|
| RFC | 7858 |
| Port | 853 |
| TLS version | 1.2 minimum, 1.3 preferred |
| Endpoint | tls://dns.secdns.io (per-profile via subdomain) |
| Android Private DNS | Native |
| Filtering inside the channel | Full — same pipeline as DoH and plain DNS |
| Anycast PoPs | Every region |
The resolver is anycast globally, so the TLS handshake terminates at the nearest PoP. SNI carries the profile identity, which means there is no separate authentication round-trip — the first DNS query inside the TLS session is already routed into the correct policy.
For Android fleets, MDM can push a Private DNS hostname through a managed configuration, locking the device to SecDNS even if the user tries to change it. For mixed fleets, the same hostname can be used by laptops with systemd-resolved or stubby configured for DoT.