]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Show auth state recursor cache dump 5596/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 17 Jul 2017 12:14:29 +0000 (14:14 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 17 Jul 2017 12:14:29 +0000 (14:14 +0200)
cherry-picked from commit ea9831c08f4c54514006efc1c61990963b10080f

pdns/recursor_cache.cc

index 30417546a164c523baabfdbfdeb82f1ee0e50046..9168ff60940b7d8598d279d2465b7e8105a74555 100644 (file)
@@ -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());