🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7563

Bug#1156372: unbound: please enable DNS-over-QUIC (build with --with-libngtcp2)

#7563
From: Michael Tokarev
Date: Sat, 05 Dec 2026 09:20
78 lines
4800 bytes
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
Technical Details
Message-ID: <O6U5X-g6Ao-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O6HV7-fZUG-5@gated-at.bofh.it> <O6HV7-fZUG-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Michael Tokarev <mjt@tls.msk.ru>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156372: unbound: please enable DNS-over-QUIC (build with --with-libngtcp2)
Date: Sat, 05 Dec 2026 10:20:01 +0100
Message-ID: <O6U5X-g6Ao-7@gated-at.bofh.it>
References: <O6HV7-fZUG-5@gated-at.bofh.it> <O6HV7-fZUG-5@gated-at.bofh.it>
X-Original-To: Simon Tretter <simon@mediaarchitectu.re>, 1156372@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sat Dec  5 09:11:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Michael Tokarev <mjt@tls.msk.ru>, 1156372@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: unbound@packages.debian.org
X-Debian-Pr-Message: followup 1156372
X-Debian-Pr-Package: unbound
X-Debian-Pr-Source: unbound
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US, ru-RU
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2007107
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 78
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sat, 5 Dec 2026 12:08:57 +0300
X-Original-Message-ID: <e8da1a4d-20d4-4d08-b7d1-701bdb72d3a6@tls.msk.ru>
X-Original-References: <DNC7Z2KJ2UAK.X2Y6Y528NB4A@mediaarchitectu.re> <DNC7Z2KJ2UAK.X2Y6Y528NB4A@mediaarchitectu.re>