From: Remi Gacogne Date: Sun, 19 Nov 2017 19:22:47 +0000 (+0100) Subject: rec: Add the validation status when dumping the negative cache X-Git-Tag: auth-4.1.0~27^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1cf8523a28a061bcb3ca685237ae20a7d7d7989;p=thirdparty%2Fpdns.git rec: Add the validation status when dumping the negative cache --- diff --git a/pdns/recursordist/negcache.cc b/pdns/recursordist/negcache.cc index 9df2ece3c0..158285e8c0 100644 --- a/pdns/recursordist/negcache.cc +++ b/pdns/recursordist/negcache.cc @@ -186,7 +186,7 @@ uint64_t NegCache::dumpToFile(FILE* fp) { negcache_sequence_t& sidx = d_negcache.get<1>(); for(const NegCacheEntry& ne : sidx) { ret++; - fprintf(fp, "%s %d IN %s VIA %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()); + 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]); }