From bddc5d9276f348f596c8d34ddd218f5070aca8b1 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 2 Feb 2016 10:39:34 +0100 Subject: [PATCH] add set-kind to set the kind of a zone --- pdns/pdnsutil.cc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 1816433ee..83173e926 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1456,6 +1456,24 @@ bool disableDNSSECOnZone(DNSSECKeeper& dk, const DNSName& zone) dk.unsetPresigned(zone); return true; } + +int setZoneKind(const DNSName& zone, const DomainInfo::DomainKind kind) +{ + UeberBackend B("default"); + DomainInfo di; + std::vector meta; + + if (!B.getDomainInfo(zone, di)){ + cerr << "No such zone "<setKind(zone, kind)) { + cerr<<"Could not find backend willing to accept new zone configuration"<