From d3022975b9ff01268e022dfc29e1b2ac7a7d3509 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Tue, 9 Jul 2019 22:28:45 +0200 Subject: [PATCH] auth: pdnsutil show zone, make sure the DNSKEY is from the right zone --- pdns/pdnsutil.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 8eb3f016d..ff4fcdb2c 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1571,9 +1571,8 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone, bool exportDS = false) vector 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(zr.dr)); } -- 2.40.0