Handle ISC_R_HOSTDOWN and ISC_R_NETDOWN in resolver.c

These error codes should be treated like other unreachable error
codes.

(cherry picked from commit 180b1e7939)
This commit is contained in:
Mark Andrews
2024-05-21 11:48:25 +10:00
parent df99aac72c
commit e87a5e7bff

View File

@@ -1920,7 +1920,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:
@@ -2994,8 +2996,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:
@@ -8175,7 +8179,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: