]> granicus.if.org Git - pdns/commitdiff
turn out-of-zone data into an error for check-zone. I can't ever see why it makes...
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 30 Jan 2016 12:24:18 +0000 (13:24 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 30 Jan 2016 12:24:18 +0000 (13:24 +0100)
pdns/pdnsutil.cc

index 761e6cbb6435a34b13be8ec3b136e22669fa48d8..08447d2e2f8bf18c53637fd7c12e36accc7e3b31 100644 (file)
@@ -520,8 +520,8 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect
     }
 
     if(!rr.qname.isPartOf(zone)) {
-      cout<<"[Warning] Record '"<<rr.qname.toString()<<" IN "<<rr.qtype.getName()<<" "<<rr.content<<"' in zone '"<<zone.toString()<<"' is out-of-zone."<<endl;
-      numwarnings++;
+      cout<<"[Error] Record '"<<rr.qname.toString()<<" IN "<<rr.qtype.getName()<<" "<<rr.content<<"' in zone '"<<zone.toString()<<"' is out-of-zone."<<endl;
+      numerrors++;
       continue;
     }