]> granicus.if.org Git - pdns/commitdiff
auth: pdnsutil show zone, make sure the DNSKEY is from the right zone
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 9 Jul 2019 20:28:45 +0000 (22:28 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 17 Jul 2019 16:43:06 +0000 (18:43 +0200)
pdns/pdnsutil.cc

index 8eb3f016dbd04b95d7a982c9fba8320042292a38..ff4fcdb2c4dee8cd88038a6a6d75090817a6c592 100644 (file)
@@ -1571,9 +1571,8 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = false)
     vector<DNSKEYRecordContent> keys;
     DNSZoneRecord zr;
 
-    B.lookup(QType(QType::DNSKEY), zone);
-    while(B.get(zr)) {
-      if (zr.dr.d_type != QType::DNSKEY) continue;
+    di.backend->lookup(QType(QType::DNSKEY), zone, nullptr, di.id );
+    while(di.backend->get(zr)) {
       keys.push_back(*getRR<DNSKEYRecordContent>(zr.dr));
     }