Create DNS record
create_dns_recordCreate a DNS record in a Zone.ee/Zone.eu zone by specifying the zone, record type, name, and destination, including MX, SRV, CAA, TLSA, SSHFP, and URL redirect fields.
Instructions
Create a DNS record. name may be '@' (zone apex), a label like 'www', or the FQDN; it is sent to Zone as an FQDN. Type-specific fields: MX priority; SRV priority, weight and port; CAA flag and tag; TLSA certificate_usage, selector and matching_type; SSHFP algorithm and fingerprint_type; URL redirect_type. TTL can't be set through the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | CAA: tag. | |
| flag | No | CAA: flag (usually 0). | |
| name | Yes | '@', a label ('www', '_acme-challenge') or the FQDN. | |
| port | No | SRV: port. | |
| type | Yes | Record type: a, aaaa, cname, mx, txt, ns, srv, caa, tlsa, sshfp, or url (Zone's HTTP redirect record). | |
| zone | Yes | DNS zone, e.g. 'example.com'. | |
| weight | No | SRV: weight. | |
| priority | No | MX, SRV: priority. | |
| selector | No | TLSA: selector 0–1. | |
| algorithm | No | SSHFP: algorithm (1=RSA, 2=DSA, 3=ECDSA, 4=Ed25519). | |
| destination | Yes | The record value: IP, target host, TXT text, CAA value, fingerprint, or the redirect URL for URL records. | |
| matching_type | No | TLSA: matching type 0–2. | |
| redirect_type | No | URL: HTTP redirect status, 301 (default) or 302. | |
| fingerprint_type | No | SSHFP: fingerprint type (1=SHA-1, 2=SHA-256). | |
| certificate_usage | No | TLSA: certificate usage 0–3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes |