]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Show validation state in recursor cache dump
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 10 Jul 2017 11:36:43 +0000 (13:36 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 10 Jul 2017 11:54:33 +0000 (13:54 +0200)
pdns/recursor_cache.cc

index 0146bd111d7a08060f2e6699d018e4eee277e937..2d4416ea6a8ef23cb18946937fff53055570a42a 100644 (file)
@@ -450,7 +450,7 @@ uint64_t MemRecursorCache::doDump(int fd)
     for(const auto j : i.d_records) {
       count++;
       try {
-        fprintf(fp, "%s %" PRId64 " IN %s %s ; %s\n", i.d_qname.toString().c_str(), static_cast<int64_t>(i.d_ttd - now), DNSRecordContent::NumberToType(i.d_qtype).c_str(), j->getZoneRepresentation().c_str(), i.d_netmask.empty() ? "" : i.d_netmask.toString().c_str());
+        fprintf(fp, "%s %" PRId64 " IN %s %s ; (%s) %s\n", i.d_qname.toString().c_str(), static_cast<int64_t>(i.d_ttd - now), DNSRecordContent::NumberToType(i.d_qtype).c_str(), j->getZoneRepresentation().c_str(), vStates[i.d_state], i.d_netmask.empty() ? "" : i.d_netmask.toString().c_str());
       }
       catch(...) {
         fprintf(fp, "; error printing '%s'\n", i.d_qname.empty() ? "EMPTY" : i.d_qname.toString().c_str());