From: bert hubert Date: Tue, 2 Feb 2016 09:39:34 +0000 (+0100) Subject: add set-kind to set the kind of a zone X-Git-Tag: dnsdist-1.0.0-alpha2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bddc5d9276f348f596c8d34ddd218f5070aca8b1;p=pdns add set-kind to set the kind of a zone --- 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"<