From: Colin Vidal Date: Thu, 4 Dec 2025 15:42:11 +0000 (+0100) Subject: support EDE 13 (Cached Error) X-Git-Tag: v9.21.17~59^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430c0ce76a02b2ca74040fd9f8bf8955298d529f;p=thirdparty%2Fbind9.git support EDE 13 (Cached Error) Extended DNS Error 13 (Cached Error) is now returned when the server answers a message from a cached SERVFAIL. See RFC 8914 section 4.14. --- diff --git a/lib/ns/query.c b/lib/ns/query.c index 3f7f0935aa7..929b2bbbcde 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -6832,6 +6832,7 @@ ns__query_sfcache(query_ctx_t *qctx) { "0"); } + dns_ede_add(&qctx->client->edectx, DNS_EDE_CACHEDERROR, NULL); qctx->client->inner.attributes |= NS_CLIENTATTR_NOSETFC; QUERY_ERROR(qctx, DNS_R_SERVFAIL); return ns_query_done(qctx);