Update DNS record
update_dns_recordModify an existing forward DNS record by ID to replace its value, TTL, or comment. Use it when a published DNS answer must change; system-managed records cannot be edited.
Instructions
Update an existing forward DNS record by its ID (PUT), replacing its desired value, TTL or comment. A changed value can replace the public DNS answer after publication. System-managed records cannot be edited. Requires dns:write when using an API key.
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": {
"zone_id": "<zone_id>",
"record_id": "<record_id>",
"name": "<name>",
"type": "<type>",
"content": "<content>"
},
"name": "update_dns_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds, allowed range 60-604800. Defaults to 120. | |
| name | Yes | Record name. Use @ for apex, or a relative name inside the zone. | |
| type | Yes | DNS record type. PTR is intentionally not supported here. | |
| comment | No | Optional note about this record, max 255 chars. | |
| content | Yes | DNS record value for the selected type | |
| zone_id | Yes | DNS zone ID | |
| record_id | Yes | DNS record ID to update |