From 5ddf6eb2e1407572e4d259047d11edb7bed42a2b Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 10 Jul 2017 13:36:43 +0200 Subject: [PATCH] rec: Show validation state in recursor cache dump --- pdns/recursor_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.47.2