Update DNS record
update_dns_recordModify an existing DNS record by ID, changing only the fields you provide. Find the record ID with list_dns_records first; changes may require confirmation.
Instructions
Change an existing DNS record (find its id with list_dns_records). Only the fields you pass are changed. When the client supports it, the user is asked to confirm the old and new values first; if they decline, nothing changes and the result has status 'declined' (or 'cancelled').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id from list_dns_records. | |
| tag | No | CAA: tag. | |
| flag | No | CAA: flag (usually 0). | |
| name | No | New name: '@', a label or the FQDN. | |
| port | No | SRV: port. | |
| type | Yes | Record type: a, aaaa, cname, mx, txt, ns, srv, caa, tlsa, sshfp, or url (Zone's HTTP redirect record). | |
| zone | Yes | DNS zone, e.g. 'example.com'. | |
| weight | No | SRV: weight. | |
| priority | No | MX, SRV: priority. | |
| selector | No | TLSA: selector 0–1. | |
| algorithm | No | SSHFP: algorithm (1=RSA, 2=DSA, 3=ECDSA, 4=Ed25519). | |
| destination | No | New value. | |
| matching_type | No | TLSA: matching type 0–2. | |
| redirect_type | No | URL: HTTP redirect status, 301 (default) or 302. | |
| fingerprint_type | No | SSHFP: fingerprint type (1=SHA-1, 2=SHA-256). | |
| certificate_usage | No | TLSA: certificate usage 0–3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| type | No | ||
| zone | No | ||
| record | No | ||
| status | No | ||
| message | No | Set when the user declined or dismissed the confirmation. |