From: Colin Vidal Date: Sat, 28 Mar 2026 12:59:26 +0000 (+0100) Subject: fix delv in resolver mode X-Git-Tag: v9.21.21~4^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45329d83d7d5cba0e10b3215228132a7604308a;p=thirdparty%2Fbind9.git fix delv in resolver mode Create an instance of the delegation database in the view created by delv in resolver mode. As the default `named` configuration is not in use, also specifically configure the `max-delegation-servers` setting using the same default value than `named`. --- diff --git a/bin/delv/delv.c b/bin/delv/delv.c index 6e2370e0602..ebce81c5d66 100644 --- a/bin/delv/delv.c +++ b/bin/delv/delv.c @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,11 @@ #define MAX_TOTAL 200 #define MAX_RESTARTS 11 +/* + * Also see max-delegation-servers default setting (bin/include/defaultconfig.h0 + */ +#define DEFAULT_MAX_DELEGATION_SERVERS 13 + /* Variables used internally by delv. */ static dns_view_t *view = NULL; static ns_server_t *sctx = NULL; @@ -2154,6 +2160,8 @@ run_server(void *arg) { dns_view_setdstport(view, destport); dns_view_setmaxrestarts(view, restarts); dns_view_setmaxqueries(view, maxtotal); + dns_view_setmaxdelegationservers(view, DEFAULT_MAX_DELEGATION_SERVERS); + dns_delegdb_create(&view->deleg); CHECK(dns_rootns_create(isc_g_mctx, dns_rdataclass_in, hintfile, &roothints));