From: Mark Andrews Date: Tue, 21 May 2024 01:48:25 +0000 (+1000) Subject: Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c X-Git-Tag: v9.20.0~14^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=180b1e79398a7120929c413c7c0392ae15ccf69c;p=thirdparty%2Fbind9.git Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c These error codes should be treated like other unreachable error codes. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index fd5cc04be1c..1d899910b38 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -1752,7 +1752,9 @@ resquery_senddone(isc_result_t eresult, isc_region_t *region, void *arg) { case ISC_R_SHUTTINGDOWN: break; + case ISC_R_HOSTDOWN: case ISC_R_HOSTUNREACH: + case ISC_R_NETDOWN: case ISC_R_NETUNREACH: case ISC_R_NOPERM: case ISC_R_ADDRNOTAVAIL: @@ -2829,8 +2831,10 @@ resquery_connected(isc_result_t eresult, isc_region_t *region, void *arg) { fctx_done_detach(&fctx, eresult); break; - case ISC_R_NETUNREACH: + case ISC_R_HOSTDOWN: case ISC_R_HOSTUNREACH: + case ISC_R_NETDOWN: + case ISC_R_NETUNREACH: case ISC_R_CONNREFUSED: case ISC_R_NOPERM: case ISC_R_ADDRNOTAVAIL: @@ -7756,7 +7760,9 @@ rctx_dispfail(respctx_t *rctx) { */ switch (rctx->result) { case ISC_R_EOF: + case ISC_R_HOSTDOWN: case ISC_R_HOSTUNREACH: + case ISC_R_NETDOWN: case ISC_R_NETUNREACH: case ISC_R_CONNREFUSED: case ISC_R_CONNECTIONRESET: