Who can see a DNS query when you use encrypted DNS?
Compare plain DNS with DNS over HTTPS and trace which parts of a domain lookup are visible to a Wi-Fi operator, resolver, and website.
Follow a library search
Imagine opening the website of your local library. Before connecting to the site, your browser may need the address for its domain. Your device can send that question to a recursive DNS resolver. With ordinary unencrypted DNS, someone able to observe that network path can read the domain name in the question and the answer it receives. DNS messages generally carry the name being looked up. The title of a book you search for on the library website belongs to a later web request. How a DNS lookup works
DNS over HTTPS, often written DoH, sends the DNS question inside an encrypted HTTPS connection to a resolver. An observer along that part of the route can see a connection to the resolver and observe its timing and size. The encrypted exchange protects the query and response contents during transit. DNS over HTTPS and privacy
The resolver still answers the question
A resolver receiving a conventional DoH request can read the requested name and normally sees the public address used to reach it. It may answer from cache or ask other DNS servers for information. The privacy effect depends partly on which organization runs that resolver and how it handles requests.
A setting enabled in one browser may apply only to that browser. Other apps can use the device’s network settings and a different resolver. A successful lookup in an online tool tells you what the tool’s resolver returned. It cannot tell you whether a separate app used DoH.
The website connection is a separate step
After receiving an address, the browser still connects to the library’s website. Network equipment needs a destination address to route that connection. Domain names can also be revealed by other parts of a connection, depending on its configuration. Encryption of the DNS exchange alone cannot establish that an observer is unable to infer which site you visited. How HTTPS changes visibility
Check your understanding
A café carries an encrypted DNS request from your browser to a resolver you selected. Which party can read the requested domain from the DNS message itself?
Show the answer
The resolver can, because it receives and processes the decrypted query. The café forwarding the encrypted request can observe the connection to the resolver and other network activity.