From ea1214e647fd171af95073fbca641c1d810ccdf0 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 14 Aug 2017 15:52:43 +0200 Subject: [PATCH] pdnsutil edit-zone checks with auth=1, but the test is run on data not from the database, but straight from the zonefile just edited, which can't yet be rectified. This commit removes the auth=1 check in case of data that is supplied straight to checkZone not from the database --- pdns/pdnsutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 079125bed..6123c9ca5 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -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?: "<