set_dns_hosts
Replace all DNS host records for a domain. Pass the complete desired record set to avoid deleting unspecified records.
Instructions
Replace ALL DNS host records for a domain. WARNING: this is destructive — Namecheap deletes any record not included here, so you must pass the COMPLETE desired record set (call get_dns_hosts first, merge your changes, then send everything). Switches the domain to Namecheap DNS if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Full domain name, e.g. example.com | |
| records | Yes | The COMPLETE set of host records to apply. Omitted records are deleted. | |
| email_type | No | Email routing mode. Set MX when including MX records; leave unset otherwise. |