Replace the ENTIRE DNS zone (destructive)
replace_all_dns_recordsReplace a domain's entire DNS record set with the exact records you provide, permanently deleting any existing records not included. Requires explicit confirmation; fetch current records first for rollback.
Instructions
DANGER: overwrite the domain's complete record set with exactly the records you provide. Every existing record NOT in your list is permanently deleted, MX mail records included. Prefer modify_dns_records for everyday edits. Requires confirm=true; an empty record set additionally requires allowEmptyZone=true. Consider calling get_dns_records first to capture the current zone for rollback.
On Route 53 the zone's own SOA and apex NS are left alone regardless — Route 53 creates both with the hosted zone and rejects deleting either.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| confirm | No | Must be true to perform the destructive replace. | |
| records | Yes | The COMPLETE desired record set. Anything omitted is deleted. | |
| provider | No | Force a provider instead of routing by domain. Needed when the domain does not exist yet (registration), and useful when a domain is at two providers and you mean a specific one. | |
| allowEmptyZone | No | Required true to submit an empty record set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| failed | Yes | ||
| account | Yes | ||
| applied | Yes | ||
| success | Yes | ||
| provider | Yes | ||
| environment | No | ||
| recordCount | Yes | ||
| nonAtomicWarning | No |