From: Remi Gacogne Date: Mon, 20 Nov 2017 08:55:50 +0000 (+0100) Subject: rec: Dump the correct NSEC record type for negative cache entries X-Git-Tag: auth-4.1.0~27^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51db65c0ac5b5d0d5152820ab8dca611ef80714b;p=pdns rec: Dump the correct NSEC record type for negative cache entries --- diff --git a/pdns/recursordist/negcache.cc b/pdns/recursordist/negcache.cc index 158285e8c..28531923e 100644 --- a/pdns/recursordist/negcache.cc +++ b/pdns/recursordist/negcache.cc @@ -188,7 +188,7 @@ uint64_t NegCache::dumpToFile(FILE* fp) { ret++; fprintf(fp, "%s %d IN %s VIA %s ; (%s)\n", ne.d_name.toString().c_str(), (unsigned int) (ne.d_ttd - now), ne.d_qtype.getName().c_str(), ne.d_auth.toString().c_str(), vStates[ne.d_validationState]); for (const auto& rec : ne.DNSSECRecords.records) { - fprintf(fp, "%s %" PRId64 " IN %s %s ; (%s)\n", ne.d_name.toString().c_str(), static_cast(ne.d_ttd - now), DNSRecordContent::NumberToType(ne.d_qtype.getCode()).c_str(), rec.d_content->getZoneRepresentation().c_str(), vStates[ne.d_validationState]); + fprintf(fp, "%s %" PRId64 " IN %s %s ; (%s)\n", ne.d_name.toString().c_str(), static_cast(ne.d_ttd - now), DNSRecordContent::NumberToType(rec.d_type).c_str(), rec.d_content->getZoneRepresentation().c_str(), vStates[ne.d_validationState]); } for (const auto& sig : ne.DNSSECRecords.signatures) { fprintf(fp, "%s %" PRId64 " IN RRSIG %s ;\n", ne.d_name.toString().c_str(), static_cast(ne.d_ttd - now), sig.d_content->getZoneRepresentation().c_str());