From: Peter van Dijk Date: Thu, 22 Feb 2018 10:14:16 +0000 (+0100) Subject: make check-zone error on records that have content but shouldn't. X-Git-Tag: dnsdist-1.3.0~74^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=decc573db598d941a562aca33fa58b9f03df6406;p=thirdparty%2Fpdns.git make check-zone error on records that have content but shouldn't. Fixes #6064 --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index f4e37ab624..f8d93fe3e5 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -299,8 +299,13 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect records=*suppliedrecords; for(auto rr : records) { // we modify this - if(!rr.qtype.getCode()) + if(!rr.qtype.getCode()) { + if(rr.content.length()) { + cout<<"[Error] ENT (or unknown type) has content: "<