resolved: enable CD bit without DO set
authorRonan Pigott <ronan@rjp.ie>
Sat, 19 Oct 2024 04:10:57 +0000 (21:10 -0700)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
commitbe6c7b79141f248e7d7d94703c660c9fa8b9fb3f
treeda9954cb483c6a0984ff274324ecdffdc1262a4a
parent8e78fd0f7d9a38a41540057528b6f710c983f09a
resolved: enable CD bit without DO set

This is useful for a validating resolver to indicate to a non-validating
resolver when checking was disabled for the query. This matches the
behavior of the major public resovlers in response to queries with CD bu
tnot DO set.

(cherry picked from commit 36074e01499ea4fc89a0c642cef83bd650014e5a)
src/resolve/resolved-dns-stub.c