Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is DNS over TLS?

DoT encrypts DNS queries inside a TLS session on port 853. It gives the same confidentiality as DoH while remaining visible to network operators as a distinct protocol.

Illustration for the cybersecurity term DNS over TLS
Home / Blog / Cybersecurity Terms / What Is DNS over TLS?
17 November 2026

What Is DNS over TLS?

What Is DNS over TLS?

DNS over TLS, defined in RFC 7858 in May 2016, does one thing: it carries ordinary DNS messages inside a TLS session rather than over plaintext UDP. The query format is unchanged, the resolver behaviour is unchanged, and the only visible difference is the destination port — 853 instead of 53 — and the fact that nobody on the path can read or alter the exchange.

How a Client Uses It

The client opens a TCP connection to port 853 on the resolver, completes a TLS handshake, and then sends standard DNS messages prefixed with a two-byte length field, exactly as DNS over TCP has always worked. The connection is kept open and reused for subsequent queries, which removes most of the handshake cost after the first lookup. RFC 7858 recommends an idle timeout on the order of ten seconds, with both ends free to negotiate longer.

Authentication comes in two profiles. In the opportunistic profile the client encrypts if it can and falls back to plaintext if it cannot, which protects against passive observation but not against an active attacker who blocks port 853. In the strict profile the client is configured with the resolver’s name and validates the certificate against it, refusing to resolve at all if validation fails. Strict is the only profile that resists an on-path attacker, and it is what Android’s Private DNS setting uses when you enter a hostname.

DoT Compared With DoH

The cryptographic protection is equivalent. The difference is entirely about who can see and control the traffic.

DNS over TLSDNS over HTTPS
Port853, dedicated443, shared with all web traffic
Network visibilityIdentifiable as DNSIndistinguishable from HTTPS
Blocking by an operatorStraightforwardRequires endpoint lists
Typical implementerOperating systems, resolversBrowsers, applications
OverheadLower; no HTTP layerSlightly higher

That visibility is why many network and security teams prefer DoT inside a managed estate. An operator can permit port 853 to the corporate resolver and deny it elsewhere, producing encrypted resolution that is still enforceable. With DoH the same enforcement requires maintaining a list of public endpoints that will always be incomplete. The flip side is that on a censoring network DoT is trivially blocked, which is exactly why privacy-focused browsers chose HTTPS instead.

Where It Is Already Running

Android has supported DoT as Private DNS since Android 9 in 2018, and it is enabled in automatic mode by default, meaning phones silently upgrade to encrypted resolution when the configured resolver supports it. Linux systems using systemd-resolved support it through DNSOverTLS=. Resolver software including Unbound, Knot Resolver, BIND, and dnsdist all terminate DoT, as do the major public resolvers. On Windows, the operating system has favoured DoH, so a mixed estate typically ends up running both.

Deploying It Without Losing Visibility

The pattern that works is simple to state. Run your own resolver, terminate DoT on it with a certificate whose name matches what clients are configured to expect, and keep full query logging there. Configure managed devices with the resolver hostname in strict mode so that a downgrade attempt fails loudly. Then block outbound 853 and 53 to everything except that resolver, and apply the browser policies that prevent applications choosing their own DoH provider.

Two operational details are easy to miss. Certificate renewal on the resolver now matters for name resolution itself, so an expired certificate in strict mode means clients cannot resolve anything — automate it and monitor expiry. And because DoT is TCP-based with long-lived connections, a resolver that previously handled stateless UDP needs sizing for concurrent connections and file descriptors rather than packets per second.

DoT protects the query in transit. It does not authenticate the answer the resolver received from upstream, which is what DNSSEC is for, and the two are complementary rather than alternatives. Our Infrastructure and Architecture Review Services cover resolver architecture, logging, and the policy that keeps clients using it.

FAQ – Frequently Asked Questions

Should I Choose DoT or DoH for My Organisation?

Inside a managed estate, DoT is usually easier to govern because it runs on a dedicated port you can permit to your own resolver and deny elsewhere. DoH is harder to control but is what browsers implement. Most organisations end up supporting both on their resolver and enforcing destination through device policy rather than protocol choice.

Does DoT Replace DNSSEC?

No, they protect different things. DoT encrypts and authenticates the link between the client and its resolver, so nobody on that path can read or alter queries. DNSSEC lets the resolver verify that the data it received from authoritative servers is genuine. Running both gives you a private channel carrying verified answers.

What Is Android Private DNS?

It is Android’s DoT implementation, available since Android 9. In automatic mode the device opportunistically tries port 853 against its configured resolver. If you enter a hostname instead, it uses the strict profile, validating the resolver’s certificate and refusing to resolve if validation fails. Entering your corporate resolver hostname is a simple way to enforce encrypted resolution on mobile devices.

Does DoT Affect Resolver Performance?

It changes the shape of the load. TLS handshakes cost CPU, and persistent TCP connections consume memory and file descriptors in a way that stateless UDP does not. Connection reuse keeps the per-query cost low once established. Size for concurrent connections rather than packets per second, and enable session resumption to reduce handshake overhead.

Related Terms

You May Be Interested In These

What Is Social Engineering?

Cybersecurity Terms

23 December 2020

What Is Social Engineering?

Read More
How Do You Acquire a Memory Dump?

Cybersecurity Terms

17 November 2026

How Do You Acquire a Memory Dump?

Read More
What Is DNS Hijacking?

Cybersecurity Terms

17 January 2020

What Is DNS Hijacking?

Read More