Support >
  About cybersecurity >
  Which is better: DoH or DoT? A Comparison of DNS Encryption Protocols (Performance, Privacy, and Compatibility)

Which is better: DoH or DoT? A Comparison of DNS Encryption Protocols (Performance, Privacy, and Compatibility)

Time : 2026-10-06 13:24:34
Edit : DNS.COM

  DNS encryption has been a topic of discussion for years, yet when it comes to making a choice, many people still get stuck on the same question: since both DoH and DoT can encrypt DNS queries, which one should be chosen? The answer isn't about which is "better," but rather which is more suitable for your specific use case. From the very beginning, DoH and DoT were designed with different goals in mind—one was created for browsers, the other for operating systems. Once this distinction is understood, the choice becomes clear.

  A fundamental divergence: who controls the DNS?

  The IETF approached the standardization of these two protocols from completely different starting points. Standardization for DoT began in April 2015, and it officially became RFC 7858 in May 2016. It was designed for the operating system-level stub resolver—the component on your computer or smartphone responsible for initiating DNS queries.

  Standardization for DoH began more than two years later, in December 2017, and it officially became RFC 8484 in October 2018. It was designed for browsers and web applications, rather than the operating system.

  This difference in timing and intended use case directly determined the divergence in their technical approaches.

  The DoT approach is quite "conservative": the DNS protocol itself remains unchanged; it is simply encapsulated within a TLS-encrypted channel and runs on a dedicated port (853). IETF documentation states quite plainly that while DoT is "easy to implement in both operating systems and recursive resolvers," actual "implementations within operating systems are scarce."

  The DoH approach is more "radical": it transforms DNS queries into HTTP messages transmitted via HTTPS over port 443. The result is that it is "easy to implement in both browsers and recursive resolvers, with numerous implementations appearing even before the specification was finalized."

  One detail worth noting is that DoT appeared to be "uncontroversial" at its launch, as the assumption was that computers would be configured to use the same recursive resolver that the user already trusted. DoH "quickly became controversial" because Firefox began testing the use of a "cloud provider not necessarily trusted by users."

  This highlights the fundamental difference between the two: DoT tends to preserve the trust relationship between the user and the resolver, whereas DoH tends to let browser vendors make the choice on the user's behalf.

  Performance: Which is faster?

  When comparing performance, there can be a significant gap between laboratory data and real-world experience. However, by piecing together test results across multiple dimensions, certain patterns emerge.

  Academic data, however, presents a much more complex picture. A paper published in April 2026 tested the performance of DoT and DoH under concurrent queries, yielding interesting results: for single queries, the average response time was 18.324 ms for DoT and 18.742 ms for DoH—a difference of less than 0.5 ms. Under concurrent queries, however, both experienced severe performance degradation: DoT’s time surged to 679.505 ms and DoH’s to 634.020 ms, with both showing standard deviations approaching 200 ms.

  The paper explains that the certificate verification process consumes CPU resources; under concurrent queries, contention for CPU resources causes query times to skyrocket. This implies that in high-load scenarios, the performance difference between the two may be overshadowed by CPU bottlenecks, making the adequacy of hardware resources the truly critical factor.

  Another key factor influencing performance is the HTTP version. Academic research indicates that DoH transmitted via HTTP/1.1 suffers from significant head-of-line blocking issues, potentially increasing latency by 0.1 to 1 second; conversely, HTTP/2-based DoH is "more promising, with latency comparable to plaintext DNS." This demonstrates that DoH performance depends heavily on the quality of implementation rather than the protocol itself. A real-world observation: DoH/3 (DoH based on QUIC) and DoQ perform better on networks with packet loss or high latency because they eliminate TCP head-of-line blocking and support stream-level recovery. If your network environment is unstable, DoH/3 offers advantages over DoT.

  Privacy: How much remains exposed beyond encryption?

  Both protocols utilize TLS encryption, so the "query content" itself is secure. However, privacy encompasses much more than just the payload.

  The privacy issue with DoT lies in its use of port 853. As a dedicated port, it allows network administrators to instantly identify the traffic as "encrypted DNS." In corporate environments, many firewalls block port 853 outright, rendering DoT connections impossible; DoT is "commonly blocked."

  DoH’s privacy advantage stems from "obfuscation." Because it operates over port 443, DoH traffic is indistinguishable from standard HTTPS traffic to an outside observer. Network monitoring equipment cannot determine—based on the port alone—whether the traffic represents a DNS query or web browsing. This makes DoH harder to block in restricted network environments.

  However, DoH’s privacy advantage comes at a cost: it undermines network-level security controls. A 2024 paper published on ScienceDirect notes that by encrypting DNS queries, DoH "complicates the ability of network administrators to inspect and filter DNS traffic," allowing malware to exploit DoH to conceal command-and-control communications. The paper also highlights a deeper privacy risk: even with encrypted content, attackers can infer a user's browsing activity by analyzing the size and timing patterns of DNS queries.

  The IETF’s RFC 8484 acknowledges that while DoH "must use a secure transport that meets HTTPS requirements," metadata at the HTTP layer—such as SNI, connection duration, and packet size—remains exposed. In a 2019 commentary, ISC.org raised a broader concern: DoH could lead to a concentration of DNS control, shifting it from ISPs to browser vendors and cloud providers. The article cited Mozilla’s explicit statement—"We are trying to shift the power to collect and monetize user data away from ISPs"—and observed that "DoH deployment could exacerbate internet centralization, undermine independent network domains, and further fuel the dominance of CDNs and centralized hosting providers."

  This concern remains valid today.

  Compatibility: Which is "Better"?

  Compatibility cannot be judged solely by whether a protocol is supported; one must also consider the level at which support is implemented and the extent of user control.

  DoT is characterized by system-level support but a lack of application-level support. Android 9+ offers native DoT support; macOS 11+ and iOS 14+ support both DoH and DoT; and Windows 11 and Windows Server 2022 support DoH but not DoT (at the system level). Once DoT is configured at the operating system level, all applications relying on system DNS automatically benefit. However, DoT support within browsers is virtually non-existent—neither Chrome nor Firefox offers a DoT option.

  DoH is characterized by application-level support, with system-level support catching up later. Chrome, Firefox, and Opera all feature built-in DoH support. Firefox enabled DoH by default for US users starting in 2020, and both Windows 11 and macOS support DoH. However, DoH configuration is typically handled on a per-application basis: enabling DoH in Firefox does not guarantee it is enabled in Chrome, and configuring it at the system level does not ensure that all applications will use it instead of traditional DNS.

  A key distinction lies in who controls the path taken by DNS queries. In DoT mode, the operating system sends DNS queries to a user-configured recursive resolver—typically the ISP's resolver or one manually specified by the user. Network administrators can distribute DNS configurations via DHCP or IPv6 RA, allowing enterprise network security policies to take effect.

  In DoH mode, the browser can bypass the operating system's DNS configuration and connect directly to its own DoH resolver. IETF documentation notes that Firefox "hard-codes DoH resolver URLs, overriding the resolver configured by the operating system," which "may interfere with the way network administrators deploy DNS security policies."

  This is why ISC.org describes DoH as a technology that "prevents network administrators from blocking DoH without decrypting all HTTPS traffic." For enterprise networks, this presents a significant management issue.

  Selection Criteria: Working Backwards from the Use Case

  Individual users primarily browsing the web: DoH is more suitable. It features built-in browser support and simple configuration, and port 443 is unlikely to be blocked. If you use Firefox or Chrome, simply enabling DoH provides encryption protection without the need to tinker with system settings.

  Enterprise networks requiring centralized DNS management: DoT is more suitable. A single system-level configuration benefits all applications; port 853 is easily identifiable, allowing firewalls and security policies to enforce rules based on the port. In an enterprise environment, DoH's "stealthiness" is actually a disadvantage, as it deprives security teams of visibility at the DNS level.

  Router/home network deployment: DoT is generally the more practical choice. Many router firmware options (such as OpenWrt and pfSense) support DoT, and configuring it at the router level covers all connected devices. Router support for DoH is relatively limited, and implementing DoH's application-specific configuration model on a router is difficult.

  Restricted network environments (e.g., certain countries or enterprises): DoH is more likely to bypass restrictions. Port 443 is typically not blocked (as blocking it would prevent access to standard websites), whereas port 853 is frequently blocked outright in many locations. If you need to bypass DNS blocking or censorship, DoH is the more practical choice.

  For those pursuing the latest technology, DoH/3 (DoH based on HTTP/3) and DoQ are worth noting. A 2025 study recommends prioritizing DoH/3 or DoQ by default, citing superior performance, enhanced security, faster handshakes, and lower latency. DoQ operates without an HTTP layer—theoretically resulting in lower overhead—though support for it among resolvers remains limited.

DNS Jade
DNS Anna
DNS Amy
DNS NOC
Title
Email Address
Type
Information
Code
Submit