ArticleslgStudy

science

DNS over HTTPS

DNS over HTTPS is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DNS over HTTPS rather than just read about it. In short: DNS over HTTPS (DoH) is a protocol for performing remote Domain Name System (DNS) resolution via the HTTPS protocol. A goal of the method is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data by man-in-the-middle attacks by using the HTTPS protocol to encrypt the data between the DoH client and the DoH-based DNS resolver.

DNS over HTTPS — main illustration
DNS over HTTPS — illustration

Key takeaways

  • DNS over HTTPS belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DNS over HTTPS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DNS over HTTPS from memory before moving on to harder problems.

Reference excerpt

DNS over HTTPS (DoH) is a protocol for performing remote Domain Name System (DNS) resolution via the HTTPS protocol. A goal of the method is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data by man-in-the-middle attacks by using the HTTPS protocol to encrypt the data between the DoH client and the DoH-based DNS resolver. By March 2018, Google and the Mozilla Foundation had started testing versions of DNS over HTTPS. In February 2020, Firefox switched to DNS over HTTPS by default for users in the United States. In May 2020, Chrome switched to DNS over HTTPS by default. An alternative to DoH is the DNS over TLS (DoT) protocol, a similar standard for encrypting DNS queries, differing only in the methods used for encryption and delivery. Based on privacy and security, whether either protocol is superior is a matter of debate, while others argue that the merits of either depend on the specific use case. DoH queries are encompassed in all HTTPS traffic, DoT queries are separate making them more readily monitored, blocked by a network administrator.

Technical details DoH is a proposed standard, published as RFC 8484 (October 2018) by the IETF. It uses HTTPS, and supports the wire format DNS response data, as returned in existing UDP responses, in an HTTPS payload with the MIME type application/dns-message. The underlying HTTP layer can be any version of HTTP, though HTTP/2 is the recommended minimum. If HTTP/2 is used, the server may also use HTTP/2 server push to send values that it anticipates the client may find useful in advance. In November 2023, the IETF published RFC 9462, "Discovery of Designated Resolvers" (DDR), which defines mechanisms for DNS clients to discover the encrypted DNS configuration of a resolver. DDR can be used to move from unencrypted DNS to encrypted DNS when only the resolver's IP address is initially known. Since DoH cannot be used under some circumstances, like captive portals, web browsers like Firefox can be configured to fall back to insecure DNS. The de facto DoH URL is https://host_name/dns-query.

Oblivious DNS over HTTPS Oblivious DNS over HTTPS (ODoH) is an experimental standard, published as RFC 9230 (June 2022) by the IETF, proposing a protocol extension to ensure no single DoH server is aware of both the client's IP address and the content of their DNS queries and responses. This is an application of a security principle called decoupling or privacy partitioning. A different protocol with the same name (Oblivious DoH) was originally developed as Oblivious DNS (ODNS) by researchers at Princeton University and the University of Chicago as an extension to unencrypted DNS, before DoH itself was standardized and widely deployed. Apple and Cloudflare subsequently deployed the technology in the context of DoH, as Oblivious DoH (ODoH). In ODoH and ODNS, all DNS requests and responses are routed via a proxy, hiding the client's address from the resolver. Requests and responses are encrypted to hide their contents from the proxy, and only the resolver can decrypt the requests, and the client the responses. Thus, the proxy knows the client address and resolver but not the request, and the resolver knows the proxy and request but not the client address, preventing the client address being linked to the query, unless both the proxy and resolver servers collude. Another protocol, Oblivious HTTP, uses similar architectural principles for HTTP requests.

Deployment scenarios DoH is used for recursive DNS resolution by DNS resolvers. Resolvers (DoH clients) must have access to a DoH server hosting a query endpoint. Three usage scenarios are common:

Using a DoH implementation within an application: Some browsers have a built-in DoH implementation and can thus perform queries by bypassing the operating system's DNS functionality. A drawback is that an application may not inform the user if it skips DoH querying, either by misconfiguration or lack of support for DoH. Installing a DoH proxy on the name server in the local network: In this scenario client systems continue to use traditional (port 53 or 853) DNS to query the name server in the local network, which will then gather the necessary replies via DoH by reaching DoH-servers in the Internet. This method is transparent to the end user. Installing a DoH proxy on a local system: In this scenario, operating systems are configured to query a locally running DoH proxy. In contrast to the previously mentioned method, the proxy needs to be installed on each system wishing to use DoH, which might require a lot of effort in larger environments.

Software support

Operating systems

Apple Apple's iOS 14 and macOS 11 released in late 2020 support both DoH and DoT protocols. In iOS, the protocols can be used via configuration profiles.

Windows In November 2019, Microsoft announced plans to implement support for encrypted DNS protocols in Microsoft Windows, beginning with DoH. In May 2020, Microsoft released Windows 10 Insider Preview Build 19628 that included initial support for DoH along with instructions on how to enable it via registry and command line interface. Windows 10 Insider Preview Build 20185 added a graphical user interface for specifying a DoH resolver. DoH support is not included in Windows 10 21H2. Windows 11 has DoH support.

Android Android 11 onwards supports DNS over HTTP/3 (DoH3) if a July 2022 system update is installed.

Recursive DNS resolvers

BIND BIND 9, an open source DNS resolver from Internet Systems Consortium added native support for DoH in version 9.17.10.

PowerDNS DNSdist, an open source DNS proxy/load balancer from PowerDNS, added native support for DoH in version 1.4.0 in April 2019.

Unbound Unbound, an open source DNS resolver created by NLnet Labs, has supported DoH since version 1.12.0, released in October 2020. It first implemented support for DNS encryption using the alternative DoT protocol much earlier, starting with version 1.4.14, released in December 2011. Unbound runs on most operating systems, including distributions of Linux, BSD, MacOS, and Windows.

Web browsers

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with DNS over HTTPS

Start with the simplest possible case. Write down what DNS over HTTPS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DNS over HTTPS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DNS over HTTPS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DNS over HTTPS

In research
DNS over HTTPS appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DNS over HTTPS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DNS over HTTPS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application layer protocols, Domain Name System, Internet privacy, so understanding it makes those chapters shorter.
In everyday life
Look for DNS over HTTPS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DNS over HTTPS” →

How to study DNS over HTTPS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DNS over HTTPS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DNS over HTTPS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DNS over HTTPS in simple terms?

DNS over HTTPS (DoH) is a protocol for performing remote Domain Name System (DNS) resolution via the HTTPS protocol. A goal of the method is to increase user privacy and security by preventing eavesdropping and manipulation of DNS data by man-in-the-middle attacks by using the HTTPS protocol to enc…

Why does DNS over HTTPS matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DNS over HTTPS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DNS over HTTPS.

Tags

  • Application layer protocols
  • Domain Name System
  • Internet privacy
  • Internet protocols
  • Internet security

Keep exploring