Update DNS Record
update_dns_recordModify an existing DNS record by its record ID, changing only the fields you pass such as content, TTL, name or priority. Use dry_run first to validate the record exists and is editable before applying.
Instructions
Update an existing DNS record by its numeric record_id (obtained from list_dns_records). All fields except record_id and domain are optional — pass only the ones you want to change. Idempotent: applying the same update twice is a no-op.
Check warnings in the response and pass it on. Porkbun keeps a DNS zone for every domain in the account whether or not the domain is delegated to Porkbun's nameservers, so this write succeeds either way. If the domain points somewhere else, the response is still SUCCESS but carries a warnings string naming the nameservers that actually answer — the record exists and nothing resolves differently. Do not report plain success in that case: either make the change at the provider that runs those nameservers, or offer update_nameservers to point the domain at Porkbun.
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>",
"record_id": "<record_id>"
},
"name": "update_dns_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | New TTL in seconds. | |
| name | No | New subdomain prefix (empty string = apex). | |
| prio | No | New priority (MX/SRV only). | |
| type | No | New record type (rarely changed). | |
| domain | Yes | Domain the record belongs to, e.g. `example.com` | |
| content | No | New record value. | |
| dry_run | No | If true, validate only — confirms the record exists and is editable, returns wouldSucceed without changing it. | |
| record_id | Yes | Numeric record ID (as a string). Get this from `list_dns_records`. |