Create or update a DNS record
eurodns_dns_upsert_recordAdds a DNS record to an existing zone or updates a record with the same type and host, validating changes before saving. Use this instead of a full zone save to avoid dropping other records.
Instructions
Adds a DNS record to a zone, or updates the existing record with the same type and host. Reads the zone, applies the change, validates it with the API, and saves only if validation passes. Prefer this over saving a zone directly: saving replaces the whole zone and drops anything not included.
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". | |
| 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 |