]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-cache.c
resolved: add DumpCache varlink call for acquiring a complete dump of all of resolved...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Jun 2023 14:40:59 +0000 (16:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Jun 2023 20:21:26 +0000 (22:21 +0200)
commite0930aa6ffabb0931d7e9e387b180fca8756ad8e
tree27c42af2cee415357bc5046997805bb0d8d3468c
parent6b9f63cb3fdbc8e365aa55bef219ced91c10c103
resolved: add DumpCache varlink call for acquiring a complete dump of all of resolved's RR caches

This adds a simple varlink call io.systemd.Resolve.Monitor.DumpCache to
the existing io.systemd.Resolve.Monitor service. It compiles a JSON
object containing the per-scope cache entries and returns it.

Replaces: #20053 #19104

Fixes: #14796
src/resolve/resolved-dns-cache.c
src/resolve/resolved-dns-cache.h
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h
src/resolve/resolved-varlink.c