]> git.ipfire.org Git - thirdparty/systemd.git/commit
dns-rr: when decoding an RR from json, make class optional
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Oct 2025 13:34:42 +0000 (15:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Oct 2025 08:35:23 +0000 (10:35 +0200)
commit970bedb6d8e512fce77b30df83b194175bbaba21
tree2ff9210c880b1873c6bd338737ee6968c33349a7
parent5751b236a5170db5f1a971ae10f28fa5e64b11ba
dns-rr: when decoding an RR from json, make class optional

The DNS RR class is a weird thing, and IRL always set to IN (i.e. 0x1).
Let's hence make it something that can be specified optionally, and
imply IN if not specified.

This makes it a bit nicer to put together suitable json resource record
keys from the command line.
src/shared/dns-rr.c
src/shared/varlink-io.systemd.Resolve.c