resolved: make sure "resolvectl monitor" can properly deal with stub queries
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Oct 2023 22:00:41 +0000 (23:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Nov 2023 22:00:45 +0000 (23:00 +0100)
commitae55c9c0aed1578efd981a9fe79135112e643575
tree937c31f3e958479bc08b28277743a680452f62d9
parent43fe529e0fe15e54ad603e26ef103a24b5e122c0
resolved: make sure "resolvectl monitor" can properly deal with stub queries

If we receive a query via the two stubs we store the original packet
instead of just the question object. Hence when we send monitor info to
subscribed clients we need to extract its question and also include it
in the returned data.

Fixes: #29580
src/resolve/resolved-dns-query.c
src/resolve/resolved-manager.c
src/resolve/resolved-manager.h