update_dns_record
Replace an existing DNS record by ID or create it if missing. Requires domain, type, name, and value; returns a new record ID for future edits.
Instructions
Replace an existing DNS record. Every field is required; LWS adds the record if the id does not exist.
The record gets a new id: use the one returned here for any later change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record ID, as returned by get_dns_zone | |
| ttl | No | Time to live in seconds | |
| name | Yes | Record name relative to the domain: '@' for the domain itself, 'www', '_dmarc'... A full name such as 'www.example.fr' is accepted and shortened automatically. | |
| type | Yes | ||
| value | Yes | Record value: IP address, target host name, text... | |
| domain | Yes | Domain name managed by the LWS account, e.g. example.fr |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||