Lesson 8 of 9 · 23m
DoH, DoT, and Resolver Policy: Encryption Without Losing Control
What DNS encryption protects, what it does not, how DoH and DoT differ operationally, and how enterprises keep visibility without breaking privacy.
Classic DNS is plaintext. Anyone on the network path can observe or modify queries unless higher-layer protections catch the damage. DoT and DoH encrypt transport between client and resolver, but they solve different deployment problems and create different policy problems. Encryption is not anonymity, and it is not a substitute for choosing a trustworthy resolver.
DoT is DNS over a dedicated TLS channel
kdig @1.1.1.1 +tls-ca +tls-host=one.one.one.one cloudflare.com ADNS over TLS normally uses TCP 853. The client authenticates the resolver certificate by hostname; 1.1.1.1 is the address, while one.one.one.one is the TLS identity being verified.
forward-zone:
name: "."
forward-tls-upstream: yes
forward-addr: 1.1.1.1@853#one.one.one.one
forward-addr: 9.9.9.9@853#dns.quad9.netThis protects the upstream leg from a local resolver to public resolvers. It does not encrypt the client-to-local leg unless that path is separately configured.
DoH is DNS inside HTTPS
curl -sS 'https://cloudflare-dns.com/dns-query?name=cloudflare.com&type=A' -H 'accept: application/dns-json'DoH uses ordinary HTTPS semantics, usually port 443 with HTTP/2 or HTTP/3. That makes it hard to distinguish or block by port — exactly why browsers like it and network operators worry about it.
What encryption protects
DoH/DoT protects the client-to-resolver path from local-network observation and modification. It does not hide queries from the resolver. It also does not hide destinations very well: certificate transparency, TLS certificate names, traffic timing, and IP addresses still leak substantial information. Think of encrypted DNS as choosing who gets your metadata, not eliminating metadata.
Enterprise control is the hard part
Historically networks enforced policy by being the resolver: malware blocks, split-horizon names, sinkholes, forensic logs. Arbitrary public DoH removes that control plane. Healthy options are to run a sanctioned DoH/DoT resolver, provision it through MDM or OS settings, block or alert on unauthorized endpoints where policy requires, and log at the sanctioned resolver rather than trying to decrypt everything.
Blocking port 53 does not restore visibility if clients can use DoH on port 443. Policy must manage configuration, not just firewall ports.
Split horizon is architecture
Internal names and private answers should never resolve through the public path. Preserve namespace routing explicitly:
[Resolve]
DNS=10.20.0.2
Domains=corp.internal
DNSSEC=allow-downgrade
DNSOverTLS=opportunisticThe operational question is always: which resolver answers which namespace, under what identity, with what logs?
Field notes
- DoT is easier to identify because it uses a dedicated port; DoH blends into HTTPS by design.
- TLS hostname failures often look like DNS data failures; test verbosely before editing records.
- Public recursive resolvers still see your full query stream. Choose them as a trust decision, not a speed contest.
- Malware uses DoH for command-and-control because defenders cannot inspect plaintext anymore; inventory sanctioned endpoints instead of pretending encryption is optional.
Was this lesson helpful?