Current Unbound generates 12-byte header-only responses (with an empty question section) if configured like this: server: interface: 0.0.0.0 access-control: 0.0.0.0/0 refuse We currently treat such responses as malformed, resulting in timeouts. This is tough situation because we only have the 16-bit DNS transaction ID to match such responses to the query.
Fixed for 2.41 via: commit 691a3b2e9bfaba842e46a5ccb7f5e6ea144c3ade Author: Florian Weimer <fweimer@redhat.com> Date: Wed Jul 24 12:06:47 2024 +0200 resolv: Allow short error responses to match any query (bug 31890) Reviewed-by: DJ Delorie <dj@redhat.com>