Lesson 6 of 9 · 23m
DoH, DoT, and the Operational Cost of Privacy
Deploy DNS over HTTPS and DNS over TLS with a clear view of trust, visibility, bypass behavior, and enterprise policy.
Classic DNS is plaintext. Anyone on the path can observe which names a device asks for, and in many networks they can modify answers too. DNS over TLS (DoT) and DNS over HTTPS (DoH) protect the client-to-resolver channel. They do not make the destination private, and they do not make the resolver benevolent. They move trust; they do not delete it.
DoT and DoH solve similar problems differently
DoT uses TLS on port 853 and is clearly identifiable as DNS. DoH uses HTTPS, usually port 443, and blends into ordinary web traffic:
DoT: stub client -> TLS :853 -> recursive resolver
DoH: application -> HTTPS :443/dns-query -> recursive resolverThe protocol difference matters operationally. DoT can be allowed or blocked as a distinct service. DoH is harder to distinguish from normal HTTPS, which is good for censorship resistance and frustrating for enterprise egress control.
Test resolution through encrypted resolvers
dig support varies by version, but modern releases can query DoT and DoH directly:
dig +tls sudosecurity.org A @1.1.1.1
dig +https sudosecurity.org A @1.1.1.1You can also test a public DoH endpoint with curl using DNS wire format or JSON depending on the service:
curl -sS -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=sudosecurity.org&type=A' | jqDo not equate success through one encrypted resolver with correctness. You are changing the resolver path, cache, filtering policy, and often the network operator all at once.
Privacy creates a visibility tradeoff
Security teams use resolver logs for incident response, malware detection, and fragile dependency discovery. Applications that bypass enterprise resolvers using hard-coded DoH endpoints remove that visibility. The wrong response is a screaming match between “privacy” and “security.” The right response is policy: managed devices use managed encrypted resolvers; unmanaged applications are detected by egress posture; exceptions are documented.
Resolver choice is still trust choice
A DoH provider can see your queries. It may log, filter, or route differently. Public resolvers such as Cloudflare 1.1.1.1, Quad9 9.9.9.9, and Google 8.8.8.8 have different filtering and data-handling policies. “Encrypted” does not mean “unlogged,” and “private” does not mean “correct for your organization.”
Field notes
- DoH inside a browser is not necessarily system-wide DNS; test the actual client path before celebrating.
- Blocking outbound UDP/53 without a managed replacement often causes application-specific fallback behavior, not compliance.
- TLS certificate validation matters for DoT and DoH. A pinned IP without correct server-name validation is not a secure design.
- Split-horizon internal zones usually require explicit resolver policy; public encrypted resolvers cannot answer private-view names they cannot see.
Was this lesson helpful?