Create MX Record
create_mx_recordAdd an MX record for a domain. Note: this replaces all existing MX records with the same name—use list_dns_records first to prevent email disruption.
Instructions
Create an MX record (mail exchange) for a domain. WARNING: This replaces ALL existing MX records with the same name — previous MX records for this name will be overwritten, not merged. Overwriting MX records can disrupt email delivery. Use list_dns_records first to check for existing records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds | |
| name | Yes | Record name (subdomain, use "@" for root) | |
| domain | Yes | The domain name | |
| exchange | Yes | Mail server hostname (e.g. "mail.example.com") | |
| priority | Yes | Priority (lower = higher priority) |