]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: probe for dnssec support in allow-downgrade mode
authorRonan Pigott <ronan@rjp.ie>
Wed, 1 May 2024 05:15:18 +0000 (22:15 -0700)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 May 2024 18:32:30 +0000 (20:32 +0200)
commit5237ffdf2b63a5afea77c3470d9981a2c29643cc
tree223dcfc9779d432edf24f243c2183d3de0b0a4a8
parentdafcba59405cf1a9ba39fb7372167d7d6f8c85e8
resolved: probe for dnssec support in allow-downgrade mode

Previously, sd-resolved unnecessarily requested SOA records for each dns
label in the query, even though they are not needed for the chain of
trust. Since 47690634f157, only the necessary records are queried when
validating.

This is actually a problem in allow-downgrade mode, since we will no
longer attempt a query for a record that we know is signed a priori, and
will therefore never update our belief about the state of dnssec support
in the recursive resolver.

Rectify this by reintroducing a query for the root zone SOA in the
allow-downgrade case, specifically to test that the resolver attaches
the RRSIGs which we know must exist.

Fixes: 47690634f157 ("resolved: don't request the SOA for every dns label")
src/resolve/resolved-dns-transaction.c