throw ApiException("You cannot give rrsets AND zone data as text");
auto nameservers = document["nameservers"];
- if (!nameservers.is_null() && !nameservers.is_array() && zonekind != DomainInfo::Slave)
+ if (!nameservers.is_null() && !nameservers.is_array() && zonekind != DomainInfo::Slave && zonekind != DomainInfo::Consumer)
throw ApiException("Nameservers is not a list");
// if records/comments are given, load and check them
autorr.auth = true;
autorr.ttl = ::arg().asNum("default-ttl");
- if (!have_soa && zonekind != DomainInfo::Slave) {
+ if (!have_soa && zonekind != DomainInfo::Slave && zonekind != DomainInfo::Consumer) {
// synthesize a SOA record so the zone "really" exists
string soa = ::arg()["default-soa-content"];
boost::replace_all(soa, "@", zonename.toStringNoDot());