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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e1864cc9a341d536e76456ce8b97bd3987f22af;p=pdns 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 1198b673c..e6e6229f2 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; }