From: Pieter Lexis Date: Wed, 4 May 2016 18:53:53 +0000 (+0200) Subject: pdnsutil load-zone: ignore double SOA X-Git-Tag: rec-4.0.0-alpha3~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3820%2Fhead;p=thirdparty%2Fpdns.git pdnsutil load-zone: ignore double SOA Closes #3818 --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index c3a432975b..83a766a225 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1122,11 +1122,18 @@ int loadZone(DNSName zone, const string& fname) { return EXIT_FAILURE; } rr.domain_id=di.id; + bool haveSOA = false; while(zpt.get(rr)) { if(!rr.qname.isPartOf(zone) && rr.qname!=zone) { cerr<<"File contains record named '"<feedRecord(rr); } db->commitTransaction();