From 8e1864cc9a341d536e76456ce8b97bd3987f22af Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Mon, 4 Jan 2016 20:51:35 +0100 Subject: [PATCH] pdnsutil create-zone: Create SOA, too With a SOA, the zone is considered created by all parts. --- pdns/pdnsutil.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; } -- 2.40.0