CLOUD CONCEPT

DNS over TLS

DNS over TLS encrypts DNS queries and responses within an authenticated TLS connection, normally using TCP port 853.

Cloud Concepts Hub →

What is DNS over TLS

DNS over TLS protects DNS traffic from observation and modification between a client and its configured resolver. It helps secure cloud and hybrid DNS communications, but its protection applies only to the encrypted connection and does not replace DNSSEC, resolver access controls, or DNS filtering.

DNS over TLS, commonly abbreviated DoT, carries DNS messages through a Transport Layer Security connection rather than sending them as ordinary unencrypted DNS traffic. Traditional DNS commonly uses UDP port 53, with TCP port 53 used when needed. DoT normally uses TCP port 853 and authenticates the resolver through its TLS certificate. This protects query names, responses, and other DNS message contents against passive observation and active modification on the protected network segment.

The security boundary is important: DoT protects a connection, not the entire recursive resolution process. If a workload connects to a recursive resolver using DoT, that resolver still sees the queries. Its subsequent communications with authoritative DNS servers are not automatically encrypted. Source and destination IP addresses, traffic timing, and approximate message sizes also remain observable. Resolver selection, query logging policies, and trust in the resolver operator therefore remain security decisions.

In a cloud environment, engineers can configure DoT-capable operating systems, local forwarding agents, or DNS proxies to send queries to an approved resolver. For example, an application instance can use a local caching resolver that forwards external queries over DoT. An organization can also run DoT listeners on virtual machines to accept encrypted queries from branch offices or other networks. The listener needs a certificate matching the configured authentication name, secure private-key handling, sufficient capacity, and redundant deployment.

For AWS networking designs, distinguish the DNS transport from the service providing resolution. An Amazon EC2 instance running suitable resolver software can terminate DoT and forward queries to Amazon Route 53 Resolver for private hosted zones. That forwarding connection is a separate security segment; receiving a query over DoT does not make the next connection encrypted. Likewise, using a managed DNS resolver or a private network does not itself establish DoT. Check the specific endpoint's supported protocols rather than assuming that every DNS interface accepts TCP port 853.

Strict certificate validation is essential. Configure the resolver's expected authentication name and trusted certificate authorities, and plan how clients obtain an initial endpoint address without creating a circular DNS dependency. A strict policy should fail rather than silently fall back to unencrypted DNS when TLS negotiation or certificate validation fails. Opportunistic configurations can improve privacy when encryption is available, but do not provide the same assurance against downgrade or interception.

Network controls must allow TCP port 853 to approved resolvers and the corresponding return traffic. Security groups, network ACLs, routes, and firewalls must all support the intended path. Blocking unauthorized port 53 traffic alone is insufficient to enforce resolver policy because applications might use other encrypted DNS transports, including DNS over HTTPS. Public resolvers also cannot normally resolve private hosted zones, so split-DNS forwarding rules must preserve internal resolution.

DoT adds connection establishment, certificate management, and connection-state overhead. Persistent connections, connection reuse, and caching reduce that cost. Monitor TLS failures, certificate expiry, query latency, and resolver availability; use resolver-side query logs when authorized because packet inspection cannot read encrypted DNS payloads. Finally, distinguish DoT from DNSSEC: DoT protects the transport to a resolver, while DNSSEC validates signed DNS data. DNS over HTTPS is another encrypted DNS transport, not another name for DoT.

Key aspects of DNS over TLS

DoT provides authenticated, encrypted DNS transport when clients enforce certificate validation, explicit fallback rules, and clearly defined per-hop security boundaries.

Encrypted DNS transport

DoT protects DNS message contents inside TLS, normally over TCP port 853. Its protection applies only between the endpoints of that TLS connection.

Authenticated resolver identity

Clients should validate the resolver certificate against an expected authentication name and a trusted certificate chain. Encryption without appropriate authentication does not provide equivalent protection against active interception.

Explicit fallback policy

Strict deployments fail closed when secure resolution cannot be established. Silent fallback to plaintext DNS can undermine a requirement to maintain confidentiality.

Per-hop security boundaries

A resolver can accept DoT and forward the same query using an unencrypted protocol. Evaluate client-to-resolver and resolver-to-upstream connections separately.

Complementary DNS security

DoT does not validate authoritative DNS data, block malicious domains, or prevent an authorized resolver from logging queries. Combine it with DNSSEC validation, filtering, access controls, and appropriate logging policies where required.

Operational and network requirements

Account for TCP connectivity, TLS certificate lifecycle, connection capacity, and redundant resolvers. Connection reuse and caching help limit latency and processing overhead.

Cloud services for DNS over TLS

Amazon EC2 can host a controlled DoT termination and forwarding layer for cloud or hybrid workloads. That layer can direct private-domain queries to Amazon Route 53 Resolver and public-domain queries to an approved DoT service such as Cloudflare 1.1.1.1 or Google Public DNS. These public services are alternatives, not mandatory components of the same deployment. Split-DNS rules keep private names on the intended resolution path. Each connection needs its own transport assessment: a TLS-protected client connection does not encrypt downstream forwarding automatically. Routing, firewall rules, certificate validation, resolver availability, and logging policies must support the complete design.

Amazon EC2 image Amazon EC2

EC2 can host DoT-capable resolver or forwarding software, such as Unbound, for cloud and hybrid clients. Engineers manage TLS certificates, software updates, resolver access controls, TCP port 853 connectivity, and availability.

Open Amazon EC2 →