update_dns_record
Replace an existing DNS record by its record ID, providing name, type, data, and TTL for a full update. Managed SOA and apex NS records are not replaceable.
Instructions
Replace an existing DNS record (identified by recordId from list_dns_records). This is a FULL replacement: name, type, data, and ttl must all be supplied; omitted fields are not preserved. GoDaddy-managed SOA and apex NS records cannot be replaced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | CAA property tag: issue, issuewild, or iodef. | |
| ttl | Yes | Time-to-live in seconds (600-86400). | |
| data | Yes | Record value. Type-specific: IPv4 address for A, IPv6 for AAAA, hostname for CNAME and MX, text for TXT, target host for SRV, issuer for CAA. | |
| flag | No | CAA flag: 0 non-critical, 128 critical. | |
| name | Yes | Record name relative to the zone apex: use @ for the bare domain, www for www.example.com, or * for a wildcard. Never include the domain itself (e.g. not www.example.com). | |
| port | No | Port for SRV records. | |
| type | Yes | DNS record type. | |
| domain | Yes | Domain whose zone to modify, e.g. example.com. | |
| weight | No | Weight for SRV records with equal priority. | |
| service | No | Service label for SRV records, e.g. _http. | |
| priority | No | Priority for MX and SRV records; lower is preferred. Required for MX and SRV. | |
| protocol | No | Protocol label for SRV records, e.g. _tcp. | |
| recordId | Yes | recordId of the existing record to replace (from list_dns_records). PUT replaces the whole record, so all fields are required. |