From 692cae8634572fdfd1175c998f232d8565642c8a Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 16 Oct 1999 20:34:04 +0000 Subject: [PATCH] The authority section wasn't being marked for caching. --- lib/dns/resolver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 3bf5ed8f4d..b121f5ad33 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -1503,6 +1503,7 @@ answer_response(fetchctx_t *fctx) { * in this section, and we expect that it is not external. */ + done = ISC_FALSE; result = dns_message_firstname(message, DNS_SECTION_AUTHORITY); while (!done && result == ISC_R_SUCCESS) { name = NULL; @@ -1519,6 +1520,8 @@ answer_response(fetchctx_t *fctx) { if (rdataset->type == dns_rdatatype_ns || (rdataset->type == dns_rdatatype_sig && rdataset->covers == dns_rdatatype_ns)) { + name->attributes |= + DNS_NAMEATTR_CACHE; rdataset->attributes |= DNS_RDATASETATTR_CACHE; if (aa)