
- DNS over TLS (DoT) uses dedicated TCP port 853, giving network teams clean visibility to filter or audit domain lookups.
- DNS over HTTPS (DoH) hides queries inside port 443 web traffic, preventing local network operators and ISPs from selectively blocking resolver access.
- Operating systems favor DoT for system-wide resolution, while browsers use DoH to manage secure application lookups directly.
DNS over HTTPS vs DNS over TLS: fundamental transport differences
DNS over HTTPS vs DNS over TLS: which encrypted lookup standard fits your setup? Pick DoT for controlled office networks and DoH for user privacy on public links. Both tools stop cleartext snooping on legacy port 53. Yet each takes a very different path across the wire.
Old style DNS sends lookups in plain text. Any router, web provider, or public Wi-Fi on the link sees every domain you visit. They can log your queries or alter answers without your knowledge.
DoT and DoH fix this gap with strong encryption. But their network design splits. One tool runs lookups on a dedicated channel. The other blends domain requests into regular web browsing.
How DoT wraps DNS queries in dedicated TLS streams
DNS over TLS follows RFC 7858. It wraps standard DNS binary packets inside a secure TLS session. It sends this traffic over TCP 853.
Because DoT uses an isolated channel, firewalls spot it right away. Network teams can write clean filter rules for port 853. They do not need to inspect deep user payloads to run domain rules.
DoT cuts away extra web baggage. The client sets up a TLS session with the resolver. It sends two byte length markers followed by the DNS message. This design keeps memory use low on small systems.
How DoH encapsulates domain requests inside web traffic
DNS over HTTPS works differently under RFC 8484. Instead of opening a raw TLS tunnel, it packages lookups as web requests. It uses standard HTTPS on port 443.
Queries travel as web POST or GET requests with the application/dns-message MIME type. To outside observers, this stream looks like normal web traffic. The domain queries blend into daily browsing.
This blending makes DoH hard to block. A firewall cannot stop DoH without shutting down port 443. Dropping port 443 breaks the web for regular users.
DoH vs DoT technical comparison matrix
Choosing between these two standards requires comparing protocol stacks, port assignments, and administrative visibility. The table below outlines how both protocols operate.
| Technical dimension | DNS over TLS (DoT) | DNS over HTTPS (DoH) |
|---|---|---|
| IETF standard | RFC 7858 (May 2016) | RFC 8484 (October 2018) |
| Assigned network port | TCP 853 (dedicated) | TCP / UDP 443 (standard web) |
| Encapsulation model | Raw DNS wireformat over TLS | DNS wireformat inside HTTP/2 or HTTP/3 |
| Firewall visibility | Explicit and easily filtered | Blended with normal web browsing |
| Header overhead | Minimal (2-byte length prefix) | HTTP request headers plus framing |
| Primary platform support | Android Private DNS, systemd-resolved | Firefox, Chrome, Edge application routing |
| Selective ISP blocking | Simple via port 853 rules | Difficult without breaking HTTPS sites |
| Recommended role | Enterprise networks and managed fleets | Roaming endpoints and privacy clients |
Handshake latency and protocol performance
How do DoH and DoT compare on speed? Raw DoT needs fewer bytes per lookup. It skips web method names, paths, and request headers.
Yet modern DoH setups close this gap using HTTP/2 and HTTP/3. Under HTTP/2, a client keeps one session open. It sends dozens of domain requests across active streams without new handshakes.
With HTTP/3 over QUIC, DoH gains fast zero round trip setup times. QUIC eliminates head-of-line blocking during packet loss. If a packet drops on a mobile link, other lookups finish without delay.
Enterprise network security and firewall visibility
Encrypted DNS creates operational trade-offs for administrators. In corporate offices, security teams rely on domain logs to catch malware, command nodes, and scam links. Our guide on software security vendor evidence shows why network clarity matters.
DoT fits corporate audit models well. Security teams can allow port 853 traffic only to approved internal resolvers. If a device calls an unvetted server, the firewall drops the session.
DoH challenges this model by bypassing local firewalls. When a desktop browser turns on DoH, it routes lookups around corporate domain filters. Teams must set up canary domains or group rules to keep network audits intact.
Client implementation: operating systems versus web browsers
Platforms chose divergent deployment strategies for secure DNS. Google added native DoT support to Android under its Private DNS tool. Linux systems running systemd-resolved also support DoT directly.
In contrast, major web browsers pushed DoH. Mozilla Firefox and Google Chrome put secure resolvers inside application settings. This routes browser lookups through secure servers without changing system network files.
Wider security controls remain essential. Just as our guide on DNSSEC and DoH differences explains, encrypting the transport does not sign records. Teams should pair encrypted lookups with strong validation rules and content security policy controls across public web assets.
Choosing the right protocol for your infrastructure
When should you use DoT, and when should you choose DoH? Choose DoT on managed networks. Office gateways, campus firewalls, and server farms benefit from clean port controls.
Use DoH when staff connect through hotel Wi-Fi, cafes, or phone data. Strict guest firewalls frequently drop port 853 packets. DoH keeps lookups running smoothly without falling back to clear text.
Also read our guides on IPv6 network launch readiness and device-bound credential protection to secure each step of user traffic.
Frequently asked questions about DoH and DoT
What is the main difference between DoH and DoT?
DoT runs raw DNS queries inside a TLS session over dedicated port 853. DoH wraps queries in HTTP requests over standard port 443, blending DNS lookups into normal web traffic.
Which protocol is faster between DoH and DoT?
DoT has slightly lower protocol overhead because it skips HTTP framing. However, DoH over HTTP/3 uses UDP and 0-RTT handshakes, matching or beating DoT on roaming mobile links.
Why do network administrators prefer DoT over DoH?
DoT uses dedicated port 853. This lets firewalls monitor, filter, or redirect DNS traffic easily without inspecting encrypted web traffic on port 443.
Can ISPs block DoH or DoT?
ISPs can block DoT easily by shutting down port 853. Blocking DoH is much harder because blocking port 443 breaks regular web browsing for users.
Sources and technical documentation
- IETF RFC 7858: Specification for DNS over Transport Layer Security (DoT)
- IETF RFC 8484: DNS Queries over HTTPS (DoH)
- Cloudflare 1.1.1.1 Developer Documentation: DNS Encryption Protocols