On 12/4/26 23:10, Simon Tretter wrote:
Package: unbound
Version: 1.26.2-1
Severity: wishlist

Dear Maintainer,

please consider building unbound with downstream DNS-over-QUIC (DoQ,
RFC 9250) support by configuring with --with-libngtcp2.

Upstream has supported DoQ since 1.22.0, and since 1.24.0 it builds
against stock OpenSSL >= 3.5 through ngtcp2's OpenSSL crypto backend,
so no QUIC-enabled OpenSSL fork is needed any more [1]. Everything
required is already in unstable:

  - libssl-dev 3.6.x
  - libngtcp2-dev and libngtcp2-crypto-ossl-dev 1.24.0-1 (also in forky;
    1.22.1 in trixie-backports)

Other distributions already ship DoQ-enabled unbound:

  - Fedora (rawhide): %bcond_without ngtcp2, BuildRequires
    ngtcp2-crypto-ossl-devel, disabled only for RHEL [2]
  - openSUSE Factory: %bcond_without unbound_quic, BuildRequires
    pkgconfig(libngtcp2_crypto_ossl) [3]
  - Arch Linux: --with-libngtcp2 [4]

Proposed change (untested sketch against salsa master):

--- a/debian/control
+++ b/debian/control
@@
   libnghttp2-dev <!pkg.unbound.libonly>,
+ libngtcp2-crypto-ossl-dev <!pkg.unbound.libonly>,
+ libngtcp2-dev <!pkg.unbound.libonly>,
   libprotobuf-c-dev <!pkg.unbound.libonly>,
--- a/debian/rules
+++ b/debian/rules
@@
                --enable-cachedb --with-libhiredis \
                --with-libnghttp2 \
+               --with-libngtcp2 \
                --with-chroot-dir="" \

Only the daemon build changes. The libunbound-only build is untouched,
so libunbound8 doesn't gain new dependencies.

Things worth considering:

  - Behaviour change for existing DoT users: quic-port defaults to 853,
    and an interface whose port matches quic-port gets a DoQ listener.
    A configuration with "interface: <addr>@853" for DNS-over-TLS would
    therefore also start answering DoQ on UDP 853 after the upgrade. A
    NEWS.Debian entry, or a packaged default that keeps DoQ off until it
    is configured explicitly, may be appropriate.

I'm considering adding something like this to NEWS:

  This version of unbound build in debian enables DNS-over-QUIC (DoQ)
  in addition to DNS-over-TLS (DoT) which has been enabled before.
  Network port used for DoQ is the same as for DoT (853).  If unbound
  is already configured to serve DoT on port 853, after this upgrade
  it will start answering DoQ queries too.  If this is not desired,
  please set quic-port in the server section of unbound.conf to 0.

But it feels this is not necessary.  The whole issue only affects
configurations where DoT is already enabled, listing tls-port (default
853) to port: or interface: lines.  Automatically enabling DoQ in
addition to already configured DoT seems to be a change not worth
notifying everyone, especially the ones who did not configure DoT.
Dunno :)

Disabling quic-port by default (when upstream default is to enable
it) seems to be wrong.

Thanks,

/mjt

Reply via email to