Switching ``dnssec`` to ``true`` (from ``false``) sets up DNSSEC signing
based on the other flags, this includes running the equivalent of
- ``secure-zone`` and ``rectify-zone`` (if ``api_rectify`` is set to "1").
+ ``secure-zone`` and ``rectify-zone`` (if ``api_rectify`` is set to ``true``).
This also applies to newly created zones. If ``presigned`` is ``true``,
no DNSSEC changes will be made to the zone or cryptokeys.
if (document["soa_edit"].is_string()) {
di.backend->setDomainMetadataOne(zonename, "SOA-EDIT", document["soa_edit"].string_value());
}
- if (document["api_rectify"].is_string()) {
- di.backend->setDomainMetadataOne(zonename, "API-RECTIFY", document["api_rectify"].string_value());
+ try {
+ bool api_rectify = boolFromJson(document, "api_rectify");
+ di.backend->setDomainMetadataOne(zonename, "API-RECTIFY", api_rectify ? "1" : "0");
}
+ catch (JsonException) {}
+
if (document["account"].is_string()) {
di.backend->setAccount(zonename, document["account"].string_value());
}