SecDNS

DNS over TLS (DoT) encrypted resolvers and Android Private DNS support on SecDNS

SecDNS provides RFC 7858 DNS over TLS endpoints on port 853 with anycast routing, per-tenant identity, and native Android Private DNS compatibility.

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:

  1. The client opens a TCP connection to the resolver on port 853.
  2. 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.
  3. 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

PropertySecDNS DoT
RFC7858
Port853
TLS version1.2 minimum, 1.3 preferred
Endpointtls://dns.secdns.io (per-profile via subdomain)
Android Private DNSNative
Filtering inside the channelFull — same pipeline as DoH and plain DNS
Anycast PoPsEvery 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.

Frequently asked questions

What is DNS over TLS in plain terms?

It is DNS sent over a regular TLS connection on a dedicated port (853). Encrypted end to end, but unlike DoH it is recognisable as DNS traffic on the wire.

When should I use DoT instead of DoH?

DoT is the right pick on Android (where Private DNS uses it natively), on Linux servers with stub resolvers like systemd-resolved, and in environments where you want to identify DNS traffic for QoS or audit while still encrypting it.

What does a SecDNS DoT endpoint look like?

A hostname plus port 853, for example tls://dns.secdns.io. Per-profile identity is carried in the TLS SNI or a subdomain such as profile-id.secdns.io depending on the deployment.

Does DoT work on Android out of the box?

Yes. Android 9 and newer ship with "Private DNS" support, which is DoT. Enter dns.secdns.io as the hostname and Android automatically negotiates TLS to port 853.

Can a network block DoT?

Port 853 is well-known, so a hostile network can drop it more easily than DoH on 443. If censorship resistance is your priority, prefer DoH. If audit recognisability is the priority, DoT is cleaner.

Is DoT slower than plain DNS?

The first query on a fresh connection pays the TLS handshake (~30-80 ms). Subsequent queries reuse the session and typically add only 1-3 ms over plain UDP.