summaryrefslogtreecommitdiffstats
path: root/man/resolvectl.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-31 11:28:12 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-31 16:13:16 +0100
commit3557f1a62a487c0be080f2de866637a7895698c2 (patch)
treeeb9cbd050524a6d2cc9e55b83e9a73f7aa3f1ac8 /man/resolvectl.xml
parenttest: use a dropin for the journald snippet (diff)
downloadsystemd-3557f1a62a487c0be080f2de866637a7895698c2.tar.xz
systemd-3557f1a62a487c0be080f2de866637a7895698c2.zip
resolvectl: add JSON output support for "resolvectl query"
It's easy to add. Let's do so. This only covers record lookups, i.e. with the --type= switch. The higher level lookups are not covered, I opted instead to print a message there to use --type= instead. I am a bit reluctant to defining a new JSON format for the high-level lookups, hence I figured for now a helpful error is good enough, that points people to the right use. Fixes: #29755
Diffstat (limited to 'man/resolvectl.xml')
-rw-r--r--man/resolvectl.xml13
1 files changed, 4 insertions, 9 deletions
diff --git a/man/resolvectl.xml b/man/resolvectl.xml
index 3babb8afc2..dada3f51d7 100644
--- a/man/resolvectl.xml
+++ b/man/resolvectl.xml
@@ -69,6 +69,9 @@
<option>--type=</option>/<option>--class=</option> is used IDNA translation is turned off and domain
names are processed as specified.</para>
+ <para>If combined with <option>--json=</option> (only supported in combination with
+ <option>--type=</option>) will output the resource record data in a JSON object.</para>
+
<xi:include href="version-info.xml" xpointer="v239"/></listitem>
</varlistentry>
@@ -478,15 +481,7 @@
</varlistentry>
<xi:include href="standard-options.xml" xpointer="json" />
-
- <varlistentry>
- <term><option>-j</option></term>
-
- <listitem><para>Short for <option>--json=auto</option></para>
-
- <xi:include href="version-info.xml" xpointer="v252"/></listitem>
- </varlistentry>
-
+ <xi:include href="standard-options.xml" xpointer="j" />
<xi:include href="standard-options.xml" xpointer="no-pager" />
<xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" />