From: Pieter Lexis Date: Mon, 10 Jul 2017 11:36:43 +0000 (+0200) Subject: rec: Show validation state in recursor cache dump X-Git-Tag: rec-4.1.0-alpha1~16^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ddf6eb2e1407572e4d259047d11edb7bed42a2b;p=thirdparty%2Fpdns.git rec: Show validation state in recursor cache dump --- diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index 0146bd111d..2d4416ea6a 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -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(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(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());