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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"id": "<id>",
"type": "<type>",
"name": "<name>",
"value": "<value>"
},
"name": "update_dns_record"
}
}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 | |||