Create DNS Record
kinsta.dns.records.createCreate a new DNS record for a domain by providing the domain ID, record type, name, TTL, and resource record values.
Instructions
Create a new DNS record for a domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes | The domain ID to create a record for | |
| type | Yes | DNS record type (e.g. A, AAAA, CNAME, MX, TXT, SRV) | |
| name | Yes | DNS record name (e.g. @ or subdomain) | |
| ttl | Yes | Time to live in seconds (minimum 300) | |
| resource_records | Yes | Array of resource record values |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||