Save a DNS zone
eurodns_dns_save_zoneReplaces a DNS zone with a complete document, deleting any records, URL forwards, and mail forwards not included. Use after retrieving the full zone to apply changes safely.
Instructions
Replaces the entire zone of domainName with body and returns the saved zone. Every record, URL forward and mail forward absent from body is deleted, so it is only safe with a complete document just read from eurodns_dns_get_zone; to change one record use eurodns_dns_upsert_record instead, which validates and keeps the rest. Run eurodns_dns_check_zone first: a rejected save answers a generic 400, while the check names the offending record. Record values go in rdata, never in data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The complete zone as returned by eurodns_dns_get_zone, with your changes applied: records, urlForwards and mailForwards. Anything left out is deleted; record values go in rdata. | |
| domainName | Yes | Name of the zone, e.g. example.com: a domain whose DNS is hosted here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Response body as returned by the API. | |
| status | Yes | Upstream HTTP status code. |