From b803970cadf18bcbcd08393c917980f78c6422d4 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 18 Nov 2020 11:53:30 +0100 Subject: [PATCH] auth: pdnsutil check-zone: DNAME fixes * don't warn about occlusion of records with the same name as the DNAME record * do warn about occlusion when the DNAME is at the apex --- pdns/pdnsutil.cc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 918171deaa..f9d0481db8 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -468,6 +468,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con } if(rr.qname==zone) { + // apex checks if (rr.qtype.getCode() == QType::NS) { hasNsAtApex=true; } else if (rr.qtype.getCode() == QType::DS) { @@ -475,6 +476,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con numwarnings++; } } else { + // non-apex checks if (rr.qtype.getCode() == QType::SOA) { cout<<"[Error] SOA record not at apex '"<