+ "capable backends are loaded, or because the backends have DNSSEC disabled. Check your configuration.");
}
-static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& di, const DNSName& zonename, const Json document, HttpResponse* resp) {
+static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& di, const DNSName& zonename, const Json document) {
string zonemaster;
bool shouldRectify = false;
for(auto value : document["masters"].array_items()) {
throw ApiException("Hosting backend does not support editing records.");
}
}
-
- // return old and new serials in headers
- resp->headers["X-PDNS-Old-Serial"] = std::to_string(sd.serial);
- fillSOAData(rr.content, sd);
- resp->headers["X-PDNS-New-Serial"] = std::to_string(sd.serial);
}
}
}
di.backend->feedComment(c);
}
- updateDomainSettingsFromDocument(B, di, zonename, document, resp);
+ updateDomainSettingsFromDocument(B, di, zonename, document);
di.backend->commitTransaction();
if(!B.getDomainInfo(zonename, di))
throw ApiException("Could not find domain '"+zonename.toString()+"'");
- updateDomainSettingsFromDocument(B, di, zonename, req->json(), resp);
+ updateDomainSettingsFromDocument(B, di, zonename, req->json());
resp->body = "";
resp->status = 204; // No Content, but indicate success