Create or update a DNS record
eurodns_dns_upsert_recordAdd or update a single DNS record in a zone, with validation and conditional save. Use matchRdata or append to handle multiple records.
Instructions
Adds one DNS record to the zone domainName, or updates the existing record with the same type and host, and returns the record as saved with the action taken. It reads the zone, applies the change, runs the API’s validator and saves only if validation passes; a rejected change returns the validation report and writes nothing. Prefer it over eurodns_dns_save_zone, which replaces the whole zone. Give matchRdata to pick one of several records sharing a host, or append: true to add a further record under an existing type and host rather than updating it; the value goes in rdata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Record TTL in seconds. Allowed values: 600, 900, 1800, 3600, 7200, 14400, 21600, 43200, 86400, 172800, 432000, 604800. | |
| host | Yes | Node the record applies to. Use "" or "@" for the apex. | |
| type | Yes | Record type, e.g. A, AAAA, CNAME, MX, TXT. | |
| rdata | Yes | Record value. The API field is "rdata", not "data". | |
| append | No | true adds the record even when one with the same type and host exists, instead of updating it: a second TXT under one host, or a further MX. Default false. | |
| domainName | Yes | Zone to modify, e.g. example.com. | |
| matchRdata | No | Update only the record whose current value matches this. Use when several records share a type and host, such as multiple TXT entries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | ||
| action | Yes | ||
| record | Yes |