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.
This commit is contained in:
Colin Vidal
2025-12-04 16:42:11 +01:00
parent 42b0046d1e
commit 430c0ce76a

View File

@@ -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);