From 8fb3318d4b39c29c970710cab62c92df1de88579 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 4 May 2016 20:53:53 +0200 Subject: [PATCH] pdnsutil load-zone: ignore double SOA Closes #3818 --- pdns/pdnsutil.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- 2.47.2