Replace DNS records
replace_dns_recordsReplace all DNS records of a specified type and name, overwriting duplicates so only one record exists. Preview with dry_run.
Instructions
Replace ALL DNS records of a given type+name (PUT) — this overwrites any existing records that match. Use it when exactly one record should exist and duplicates must be removed. Pass dry_run=true to preview the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Time-to-live in seconds (default 3600) | |
| data | Yes | New record value | |
| name | Yes | Record name/subdomain — use "@" for the apex/root record | |
| domain | Yes | The root domain, e.g. "example.com" | |
| dry_run | No | When true, make NO call to the GoDaddy API — just describe the change that would be made | |
| priority | No | Priority for MX/SRV records (ignored for other types) | |
| record_type | Yes | DNS record type: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, ... |