From ea9831c08f4c54514006efc1c61990963b10080f Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 10 Jul 2017 13:45:42 +0200 Subject: [PATCH] rec: Show auth state 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 2d4416ea6..475e7a1a7 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) %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()); + fprintf(fp, "%s %" PRId64 " IN %s %s ; (%s) auth=%i %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_auth, 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.40.0