From: W.C.A. Wijngaards Date: Wed, 13 Aug 2025 09:36:47 +0000 (+0200) Subject: - unbound-control cache_lookup prints the cached rrsets X-Git-Tag: release-1.24.0rc1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f7890eb6e5162a48863a7b8a941fe243aa7c1ed;p=thirdparty%2Funbound.git - unbound-control cache_lookup prints the cached rrsets and messages for those. Changelog and information. --- diff --git a/doc/Changelog b/doc/Changelog index b0b6cc978..8d0e4cb2d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +13 August 2025: Wouter + - unbound-control cache_lookup prints the cached rrsets + and messages for those. + 12 August 2025: Wouter - Fix that unbound-control dump_cache releases the cache locks every so often, so that the server stays responsive. diff --git a/doc/unbound-control.rst b/doc/unbound-control.rst index 1f3cc4a8e..a42809e66 100644 --- a/doc/unbound-control.rst +++ b/doc/unbound-control.rst @@ -386,6 +386,12 @@ There are several commands that the server understands. Not supported in remote Unbounds in multi-process operation. +@@UAHL@unbound-control.commands@cache_lookup@@ *names* + Print to stdout the RRsets and messages that are in the cache. + For every name listed the content at or under the name is printed. + Several names separated by spaces can be given, each is printed. + + @@UAHL@unbound-control.commands@lookup@@ *name* Print to stdout the name servers that would be used to look up the name specified. diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index 994a42870..c58704c82 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -143,6 +143,7 @@ usage(void) printf(" load_cache load cache from stdin\n"); printf(" (not supported in remote unbounds in\n"); printf(" multi-process operation)\n"); + printf(" cache_lookup print rrsets and msgs at or under the names\n"); printf(" lookup print nameservers for name\n"); printf(" flush [+c] flushes common types for name from cache\n"); printf(" types: A, AAAA, MX, PTR, NS,\n");