domains.add_dns_host
Add one DNS host record to a managed domain without replacing the full zone.
Preserves existing records. The domain must use Namecheap DNS. Call domains.get_dns_hosts afterward if HostIds are needed.
Cost = 5 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds (60 to 60000). Defaults to 1800. | |
| domain | Yes | Managed domain name (for example example.com). | |
| address | Yes | Record value (IP, hostname, URL, or TXT content depending on type). | |
| mx_pref | No | MX preference. Required when record_type is MX or MXE. | |
| host_name | Yes | Host label to create, for example @, www, or mail. | |
| record_type | Yes | DNS record type. Supported values: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | No | Full DNS host list after the addition. | |
| domain | No | Managed domain name. | |
| is_using_namecheap_dns | No | Whether the domain currently uses Namecheap DNS. |