networkingprivacy

Kept in this browser · My desk

Stands for: DNS over QUIC

DoQ, DNS over QUIC (RFC 9250, May 2022), carries DNS messages over dedicated QUIC connections on UDP port 853, one query per stream, encrypting them with the TLS 1.3 handshake built into QUIC.

DoQ is the third encrypted transport for the Domain Name System (DNS), after DNS over TLS (DoT) and DNS over HTTPS (DoH). It runs directly on QUIC, the UDP-based transport that integrates TLS (Transport Layer Security) 1.3, selected with the ALPN token "doq" on UDP port 853. Each query gets its own stream, so a slow answer does not block the others, and unlike DoT and DoH it is specified for stub-to-recursive, recursive-to-authoritative and zone transfer traffic alike.

What it is. RFC (Request for Comments) 9250, "DNS over Dedicated QUIC Connections", by Christian Huitema, Sara Dickinson and Allison Mankin, a Standards Track document of May 2022, defines DoQ as "general-purpose transport for DNS" covering "stub to recursive, recursive to authoritative, and zone transfer scenarios"; RFC 9499 repeats that scope. QUIC brings encryption with TLS (Transport Layer Security) 1.3, connection setup in fewer round trips, and independent streams over UDP (User Datagram Protocol).

Where it came from. DoQ was written in the IETF (Internet Engineering Task Force) working group on DNS privacy, DPRIVE, as draft-ietf-dprive-dnsoquic, and the RFC Editor's record lists RFC 9250 as a Proposed Standard with no update since. It rests on QUIC version 1, RFC 9000 (May 2021, J. Iyengar and M. Thomson, eds.), and on DoT (DNS over TLS), RFC 7858 (May 2016, Z. Hu, L. Zhu, J. Heidemann, A. Mankin, D. Wessels and P. Hoffman), from which, with HTTP/3, its acknowledgements say it "liberally borrows text". They credit Daniel Kahn Gillmor with the analysis of the privacy issue in 0-RTT (zero round trip) data and Stephane Bortzmeyer with early interoperability tests.

On the wire. A client signals DoQ by selecting the Application-Layer Protocol Negotiation (ALPN) token "doq". The default port is UDP 853, which servers "MUST listen for and accept" unless both sides agree otherwise; "DoQ connections MUST NOT use UDP port 53", to avoid confusion with classic DNS, while for stub-to-recursive traffic port 443 is mentioned as a less-blocked alternative by agreement. The client opens "a separate QUIC stream for each query", the server answers on the same stream, and every message is "encoded as a 2-octet length field followed by the message content", exactly as over TCP, so "the content of each QUIC stream is exactly the same as the content of a TCP connection that would manage exactly one query". The DNS Message ID (identifier) MUST be 0, since the stream already identifies the transaction.

Registries, ports and errors. RFC 9250 registered the ALPN identification sequence 0x64 0x6F 0x71, "doq", and widened IANA's (Internet Assigned Numbers Authority) entry for UDP port 853, service domain-s, to "DNS query-response protocol run over DTLS or QUIC". DTLS (Datagram TLS) for DNS, RFC 8094, is experimental, with no deployment known to the authors, and the two can share the port because the second most significant bit of each UDP payload tells them apart. A server that will not take a request in 0-RTT data may answer REFUSED with the new Extended DNS Error 26, "Too Early", or close with DOQ_PROTOCOL_ERROR. The error codes are DOQ_NO_ERROR (0x0), DOQ_INTERNAL_ERROR (0x1), DOQ_PROTOCOL_ERROR (0x2), DOQ_REQUEST_CANCELLED (0x3), DOQ_EXCESSIVE_LOAD (0x4), DOQ_UNSPECIFIED_ERROR (0x5) and DOQ_ERROR_RESERVED (0xd098ea5e).

Behaviour that matters. Streams are independent, so a lost packet delays only its own query. A secondary can cancel one zone transfer by resetting its stream "without having to close the QUIC connection". The protocol defines its own error codes, such as DOQ_NO_ERROR and DOQ_EXCESSIVE_LOAD. Session resumption with 0-RTT (zero round trip) data is allowed, but only for "replayable" transactions: "only transactions that have an OPCODE of QUERY or NOTIFY are considered replayable", so UPDATE and zone transfer requests must wait for the handshake.

Amplification and traffic analysis. Because it runs over UDP, DoQ inherits QUIC's address validation, which "limits the worst-case amplification to a factor 3", and RFC 9250 says servers SHOULD consider Retry packets, a one round trip check of the client's address "similar to the DNS Cookies mechanism", with tokens that spare returning clients the delay. Encryption hides content, not size, so implementations "MUST protect against the traffic analysis attacks" by padding, either the DNS message with the Padding option of EDNS(0), the Extension Mechanisms for DNS (RFC 7830), or the QUIC packets themselves.

Compared with DoT and DoH. DoT (RFC 7858) puts DNS in TLS over TCP on port 853 and suffers head-of-line blocking when many queries share one connection; DoH, DNS over HTTPS (RFC 8484), puts DNS in HTTPS, usually on port 443, where it blends with web traffic; DoQ keeps DoT's dedicated port and adds QUIC's streams and faster setup. None of them hides the question from the resolver that answers it, and none replaces DNSSEC (the DNS Security Extensions), which proves where data came from rather than hiding it.

Who runs it. dnsdist accepts incoming DoQ "since 1.9.0" through addDOQLocal with a certificate and key on UDP 853; Unbound serves it on quic-port, 853 by default, on interfaces configured with that port; the Knot DNS authoritative server can answer over QUIC (off by default, quic-port 853), which matters because DoQ, unlike DoT and DoH, is also meant for resolver-to-authoritative traffic and zone transfers.

Tools. Knot DNS's kdig offers +quic to query over DoQ. BIND's dig, in the 9.21 manual read on 2026-11-23, offers +tls and +https but no QUIC option, a difference a command converter must report rather than paper over.

How it differs. DoQ, DoT and DoH all encrypt the same DNS messages; what changes is the carrier. DoT is TLS over TCP on port 853, DoH is HTTPS on 443, DoQ is QUIC on UDP 853 with one stream per query. XoT, zone transfer over TLS (RFC 9103), is the transfer-only cousin on TCP, and DNSSEC (the DNS Security Extensions) signs the data whichever pipe carries it.

Also known as: dns over quic, dns-over-quic, rfc 9250

Sources

← Back to D Back to the glossary