Reset DNS zone of a domain
Put the DNS zone of a domain back to the records its web hosting package sets up.
manitu_domain_dns_zone_reset on https://mcp.manitu.de/mcpAnnotations as tools/list sends them
Description for the model
Puts the DNS zone of a domain at manitu back to the records its web hosting package sets up for web site and e-mail - for a zone that was broken by hand. mode replace makes it a new zone: every other record (own servers, TXT for verifications, ...) is gone. mode merge puts manitu's records in and keeps the others. A custom MX and A/AAAA of the domain itself are kept where they can be. Read the zone first (manitu_domain_dns_zone_get), tell the customer what will be lost, and wait for an explicit yes. Only for a domain in a web hosting package (else conflict no_webhosting_package); refused with a conflict when manitu does not hold the zone (zone_not_primary_at_manitu), the domain is not active (zone_not_editable) or the zone changed since zone_revision (zone_changed). Every change counts the serial up and answers the new zone_revision - pass that one with the next change. A new serial after your own change is expected, not a change by someone else.
Arguments
namestringrequiredThe domain name, with international characters or in ASCII.
modestringrequiredreplace: the zone as a new one, every other record is gone. merge: manitu's records for web and mail put in, the other records kept.
zone_revisionstringOptional: zone_revision from manitu_domain_dns_zone_get or from the answer of your last change - refused with zone_changed if the zone changed since.
Result structuredContent, checked against the schema
namestringrequiredThe domain, with international characters.
modestringrequiredzone_datastringrequiredThe zone now, as BIND zone file text (raw).
zone_revisionstringrequiredThe revision of the zone now.
Authentication
One of X-API-Key, Authorization: Bearer … - never more than one in a request. More
Request body JSON; unknown fields are refused
namestringrequiredThe domain name, with international characters or in ASCII.
modestringrequiredreplace: the zone as a new one, every other record is gone. merge: manitu's records for web and mail put in, the other records kept.
zone_revisionstringOptional: zone_revision from manitu_domain_dns_zone_get or from the answer of your last change - refused with zone_changed if the zone changed since.
Response in data; the rest of the body as on every call
namestringrequiredThe domain, with international characters.
modestringrequiredzone_datastringrequiredThe zone now, as BIND zone file text (raw).
zone_revisionstringrequiredThe revision of the zone now.
Statuses
200Success.400The request does not match the declared input schema.401No credential was presented, or it was not recognised.403The credential is not permitted to use this operation.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.