]> granicus.if.org Git - pdns/commitdiff
pdnsutil edit-zone checks with auth=1, but the test is run on data not from the datab...
authorbert hubert <bert.hubert@powerdns.com>
Mon, 14 Aug 2017 13:52:43 +0000 (15:52 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Mon, 14 Aug 2017 13:52:43 +0000 (15:52 +0200)
This commit removes the auth=1 check in case of data that is supplied straight to checkZone not from the database

pdns/pdnsutil.cc

index 079125bed4381bfad8733311ddc2e0960117808c..6123c9ca539c6a4f69a554d78c7765feb0729e44 100644 (file)
@@ -642,7 +642,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect
       }
     }
 
-    if(rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A && rr.qtype.getCode()!=QType::AAAA)
+    if(!suppliedrecords && rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A && rr.qtype.getCode()!=QType::AAAA)
     {
       cout<<"[Error] Following record is auth=0, run pdnsutil rectify-zone?: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl;
       numerrors++;