What does DNS over HTTPS protect?
Useful first: DNS · optional, not a requirement
Choose your depth
Stay with the essentials, or look closer.
YOUR GOALIdentify the protected connection and the party that still receives your question.
Protect the lookup on its way
A lookup needs a recipient
DNS helps find records such as a website's address. With DoH, a client sends its lookup to a compatible resolver using HTTPS. The resolver processes the question and returns a DNS reply through that protected connection.
[1] [5]Hide the question from the path
Imagine a laptop on hotel Wi-Fi asking about books.example. DoH prevents a passive observer on that connection from reading the DNS message directly. The resolver still receives the question. Encryption changes what an observer along the path can read; it does not make the recipient blind.
[1] [2] [5]A boundary, not total invisibility
DoH does not promise anonymous browsing or encrypt every later step the resolver takes. Traffic patterns can still reveal clues. Choosing a different resolver can also change which local filtering policies apply. The resolver's operator and your network requirements still matter.
[2] [5]Ask which connection is protected and who receives the decrypted question.
Encrypted DNS means nobody knows which names I look up.
The chosen resolver receives the queries, and encryption does not eliminate every other clue.
Show the explanation
The selected resolver. HTTPS protects the exchange along the path; the resolver is its intended recipient.
YOUR GOALDistinguish the HTTP exchange, the DNS result and the response format.
Read both response layers
Two ways to carry the message
For the RFC 8484 format, GET carries a base64url-encoded DNS message in the dns parameter. POST carries binary DNS bytes in its body with Content-Type: application/dns-message. Both travel over HTTPS; GET does not mean unencrypted.
HTTP success is not DNS success
An HTTP 200 response can contain a DNS failure. For example, NXDOMAIN reports that a queried name does not exist. Check the DNS result inside the response instead of treating 200 as proof that an address was found.
[1] [4]Choose the matching parser
application/dns-message is binary DNS wire format, not JSON. Google's service also offers a separate JSON API. A developer who passes a wire-format body to a JSON parser has mixed formats; inspect the endpoint and media type first.
Check transport status, DNS status and format separately.
HTTP 200 means the requested domain was successfully resolved to an address.
It can mean a DNS response was delivered successfully, including a negative result.
Show the explanation
The HTTP exchange delivered a DNS result saying the name does not exist. The HTTP and DNS status codes describe different layers. Successful delivery can carry a negative DNS result.
YOUR GOALReason about cached answers and the remaining trust boundaries.
Keep freshness, authenticity and privacy separate
A cache does not restart the clock
For a response with answer records, HTTP freshness cannot exceed the smallest answer TTL. The client also accounts for Age: a record with TTL 120 arriving with Age 40 has 80 seconds remaining. Receiving a cached reply does not grant a fresh 120 seconds.
DNSSEC answers a different question
DNSSEC validation checks signatures and a chain of trust for signed DNS data. It does not hide queries. DoH protects a transport connection; it does not by itself establish that DNSSEC validation occurred. The mechanisms can work together, but neither name is a substitute for the other's purpose.
[1] [3]Minimize what the service receives
Ordinary direct DoH still exposes queries to its resolver. HTTP headers can add identifying details: User-Agent may reveal client software, and Accept-Language may reveal locale. Encrypting those headers on the path does not hide them from the service. Minimize unnecessary metadata and examine the operator's practices.
[2] [4]Track the answer's age, its validation and the resolver's visibility independently.
A successful encrypted DNS exchange proves DNSSEC validated the answer.
Transport protection and signed-data validation are separate properties.
Show the explanation
80 seconds, after accounting for the cached age. Subtract the existing 40 seconds of age from the 120-second TTL; transfer through an HTTP cache does not reset it.
Keep asking. Check the details.
Source-checked using AI (OpenAI Codex) on . The checks covered sources, examples, and quizzes for this article version.
No human review is claimed. AI review can miss errors; check the original sources below.
- RFC 8484 — DNS Queries over HTTPS
- RFC 9076 — DNS Privacy Considerations
- RFC 4033 — DNS Security Introduction and Requirements
- Google Public DNS — DNS-over-HTTPS
- Mozilla — Firefox DNS over HTTPS