create_dns_record
Add a DNS record to your domain (e.g., A, CNAME, MX). Returns the record ID for later updates or deletions.
Instructions
Create a DNS record on a domain in the authenticated account. Returns the new record's id so it can be referenced by update_dns_record and delete_dns_record. For the name field: omit or pass empty string for the apex/root, otherwise pass the subdomain prefix only (e.g. www, not www.example.com). For MX and SRV records, set prio (priority). Free, doesn't spend account credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to add the record to, e.g. `example.com` | |
| type | Yes | Record type. Common: A, AAAA, CNAME, MX, TXT. | |
| content | Yes | Record value (e.g. an IP for A, a hostname for CNAME, the text body for TXT). | |
| name | No | Subdomain prefix (no domain). Empty string or omitted = apex. Examples: `www`, `mail`, `api.staging`. | |
| ttl | No | Time-to-live in seconds. Minimum 60. Defaults to 600 if omitted. | |
| prio | No | Priority — required for MX and SRV records, ignored otherwise. |