DoQ
acronymKept 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
- IETF, RFC 9250, DNS over Dedicated QUIC Connections (C. Huitema, S. Dickinson, A. Mankin), May 2022 (read 2026-11-23): ALPN doq, UDP port 853 and never 53, one stream per query, 2-octet length, Message ID 0, 0-RTT only for QUERY and NOTIFY, per-stream transfer cancellation
- IETF, RFC 9499 (BCP 219), DNS Terminology (P. Hoffman, K. Fujiwara), March 2024 (read 2026-11-23): resolver, stub, iterative and recursive modes, full-service, forwarder, policy-implementing, open and validating resolvers; zone transfer, AXFR, IXFR; DoQ; anycast and instance
- CZ.NIC, kdig, Knot DNS 3.6.2 documentation (read 2026-11-23): +quic, +nsid, IXFR=serial
- ISC, BIND 9 manual pages, 9.21.29-dev documentation (read 2026-11-23): dig AXFR and ixfr=N, +nsid, -k and -y; host -l; nslookup ls not implemented; nsupdate prereq and update commands
- RFC Editor, RFC 9250 record, JSON metadata (read 2026-11-23): Proposed Standard, May 2022; obsoletes nothing and is not updated
- IETF Datatracker, RFC 9250 (draft-ietf-dprive-dnsoquic, DPRIVE working group) (read 2026-11-23): the document's working group history and full text, acknowledgements to Tony Finch, Paul Hoffman, Martin Thomson and Stephane Bortzmeyer's interoperability tests
- IETF, RFC 9000, QUIC: A UDP-Based Multiplexed and Secure Transport (J. Iyengar, M. Thomson, eds.), May 2021 (read 2026-11-23): QUIC version 1, streams, address validation (section 8) and padding (section 19.1) that RFC 9250 builds on
- IETF, RFC 7858, Specification for DNS over Transport Layer Security (TLS) (Z. Hu, L. Zhu, J. Heidemann, A. Mankin, D. Wessels, P. Hoffman), May 2016 (read 2026-11-23): DNS in TLS over TCP on port 853
- PowerDNS, dnsdist documentation, DNS-over-QUIC (DoQ) guide (read 2026-11-23): incoming DoQ supported since dnsdist 1.9.0, addDOQLocal with a certificate and key, UDP port 853
- NLnet Labs, unbound.conf(5), Unbound documentation, latest (read 2026-11-23): access-control, by default only 127.0.0.0/8 allowed and the rest refused; quic-port default 853 for DNS-over-QUIC; nsid disabled by default, hex or ascii_; qname-minimisation default yes; val-sig-skew-min 3600 and val-sig-skew-max 86400 seconds, 10% of the signature lifetime; use-caps-for-id default no; forward-zone and forward-first
- CZ.NIC, Knot DNS configuration reference, latest documentation (read 2026-11-23): nsid default the FQDN hostname at start; acl actions query, notify, transfer and update; notify-delay default 0; provide-ixfr default on; zonefile-load difference; quic default off and quic-port 853