mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 17:10:55 +00:00
When --json is requested, resolution errors returned by resolved still went through text logging. That made scripts parse stderr even though the varlink error already carried structured fields such as rcode and EDE. Add a small JSON error dumper for resolvectl query errors. It outputs the queried name and varlink error id alongside the original varlink parameters so DNSError and DNSSECValidationFailed expose rcode, extendedDNSErrorCode, extendedDNSErrorMessage, queryString, and result without duplicating the schema in resolvectl. Keep non-JSON text output and silent warn_missing NXDOMAIN handling unchanged. Document the JSON resolution error object in resolvectl(1), including the distinction between resolved errors and local invocation or connection errors. Closes #42904