edit_dns_record
Update an existing DNS record in a cPanel zone by line number with a new address, avoiding the need to recreate it.
Instructions
Edit an existing DNS zone record
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>",
"line": "<line>",
"name": "<name>",
"type": "<type>",
"address": "<address>"
},
"name": "edit_dns_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds | 14400 |
| line | Yes | Line number of the record to edit (from get_dns_records) | |
| name | Yes | Record name | |
| type | Yes | Record type | |
| domain | Yes | Domain/zone name | |
| address | Yes | New record value |