From 03befb4dc3fa14fcd05f5d47954115b8bcf92ad6 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 17 Jul 2017 14:14:29 +0200 Subject: [PATCH] rec: Show auth state recursor cache dump cherry-picked from commit ea9831c08f4c54514006efc1c61990963b10080f --- 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 30417546a1..9168ff6094 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -289,7 +289,7 @@ uint64_t MemRecursorCache::doDump(int fd) for(auto j=i->d_records.cbegin(); j != i->d_records.cend(); ++j) { count++; try { - fprintf(fp, "%s %d IN %s %s ; %s\n", i->d_qname.toString().c_str(), (int32_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 %d IN %s %s ; auth=%i %s\n", i->d_qname.toString().c_str(), (int32_t)(i->d_ttd - now), DNSRecordContent::NumberToType(i->d_qtype).c_str(), (*j)->getZoneRepresentation().c_str(), 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.39.2