DoH support is disabled

Bug #1927877 reported by Dominic
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unbound (Debian)
Fix Released
Unknown
unbound (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

NLnetLabs has added DNS-over-HTTPS support to Unbound as of release 1.12.0. The current Ubuntu package delivering this release however has no DoH support.

For DoH to work, Unbound simply would need to be compiled with the nghttp2 library.

Revision history for this message
Paride Legovini (paride) wrote :

Hello Dominic and thanks for this bug report. I agree it would make sense to add DoH support in the current Ubuntu development release (Impish), however I think the required change should ideally be made in Debian (rationale: avoid adding a delta to a sync and we're early in the devel cycle). Ubuntu will then inherit DoH support with the next package sync.

There's an active Debian bug about this: [1]. I'll link it to this Ubuntu bug to make it easy to follow progress.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973793

Changed in unbound (Ubuntu):
status: New → Triaged
Revision history for this message
Dominic (triatic) wrote :

Thanks, I mostly copied the bug report from the Debian package. Is there someone here that can nudge the package managers at Debian?

Changed in unbound (Debian):
status: Unknown → New
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hi Dominic,

I've pinged Robert Edmonds on the MR. Let's see if that works. Thanks!

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

In case the MR is not addressed when we approach our feature freeze, we could consider including it as a delta to enable DNS-over-HTTPS support in unbound.

Revision history for this message
Dominic (triatic) wrote :

I would support this, DNS-over-HTTPS is increasing in usage and its omission is frustrating. I had to compile from source on Hirsute to enable it.

Revision history for this message
Paride Legovini (paride) wrote :
Revision history for this message
Dominic (triatic) wrote :

The Debian MR has still not been actioned. Can we now consider enabling DoH support in Ubuntu's Unbound package?

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for your interest in this feature, Dominic.

There is still some time before Ubuntu's Feature Freeze, but I think we can consider including this feature in the Ubuntu unbound because of the radio silence from the Debian side (which is completely understandable, because Debian is currently in freeze).

Someone from the Ubuntu Server team will start working on this in the next days.

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

The patch proposed at

https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/unbound/+git/unbound/+merge/405055

Enables DoH for unbound.

The change can be tested using the upstream test "dohclient". One possible way of reproducing the bug and verifying the changes follows:

Create the tsting binary:

$ git ubuntu clone unbound
$ cd unbound
$ ./configure --with-libnghttp2
$ make dohclient

Install unbound:

# apt-get install unbound

Configure unbound by appending the following to /etc/unbound/unbound.conf:

server:
 interface: 127.0.0.1@443
 tls-service-key: "/etc/unbound/unbound_server.key"
 tls-service-pem: "/etc/unbound/unbound_server.pem"
 https-port: 443

Restart unbound
$ systemctl restart unbound

test DoH support:
$ ./dohclient -s 127.0.0.1 nlnetlabs.nl AAAA IN

Which outputs:
> nghttp2 session mem_recv failed

Finally, install the fixed package, as proposed in the linked MP, restart unbound, and verify DoH support again:
$ ./dohclient -s 127.0.0.1 nlnetlabs.nl AAAA IN

Which outputs a proper response, including
> :status 200

which should confirm the fix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unbound - 1.13.1-1ubuntu1

---------------
unbound (1.13.1-1ubuntu1) impish; urgency=medium

  * Enable DNS-over-HTTPS support (LP: #1927877)
    - d/control: add Build-Depends on libnghttp2-dev
    - d/rules: compile with libnghttp2

 -- Athos Ribeiro <email address hidden> Thu, 01 Jul 2021 11:16:26 -0300

Changed in unbound (Ubuntu):
status: Triaged → Fix Released
Changed in unbound (Debian):
status: New → Confirmed
Changed in unbound (Debian):
status: Confirmed → Fix Committed
Changed in unbound (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.