From: Christian Hofstaedtler Date: Mon, 4 Jan 2016 19:51:35 +0000 (+0100) Subject: pdnsutil create-zone: Create SOA, too X-Git-Tag: dnsdist-1.0.0-alpha2~92^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3169%2Fhead;p=thirdparty%2Fpdns.git pdnsutil create-zone: Create SOA, too With a SOA, the zone is considered created by all parts. --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 1198b673c6..e6e6229f23 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -933,6 +933,24 @@ int createZone(const DNSName &zone) { cerr<<"Domain '"<getZoneRepresentation(true); + rr.domain_id = di.id; + di.backend->startTransaction(zone, di.id); + di.backend->feedRecord(rr); + di.backend->commitTransaction(); + return 1; }