From: Pieter Lexis Date: Mon, 17 Jul 2017 12:14:29 +0000 (+0200) Subject: rec: Show auth state recursor cache dump X-Git-Tag: rec-4.0.7~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5596%2Fhead;p=thirdparty%2Fpdns.git rec: Show auth state recursor cache dump cherry-picked from commit ea9831c08f4c54514006efc1c61990963b10080f --- 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());