From: Peter van Dijk Date: Wed, 18 Nov 2020 10:53:30 +0000 (+0100) Subject: auth: pdnsutil check-zone: DNAME fixes X-Git-Tag: auth-4.4.0-beta1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b803970cadf18bcbcd08393c917980f78c6422d4;p=thirdparty%2Fpdns.git 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 --- 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 '"<