Create DNS Zone
hetzner_create_zoneCreate a DNS zone in primary or secondary mode, optionally specifying TTL, nameservers, RRSets, or zonefile.
Instructions
Create a new DNS zone in primary or secondary mode. Optionally provide TTL, primary nameservers (for secondary), initial RRSets, or a zonefile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Fully qualified domain name of the zone, e.g. "example.com" | |
| mode | Yes | Zone mode: "primary" (managed here) or "secondary" (transferred from external primary) | |
| ttl | No | Default TTL in seconds for records in this zone | |
| labels | No | Labels as key-value pairs | |
| primary_nameservers | No | Primary nameservers (required for secondary zones) | |
| rrsets | No | Initial RRSets to create with the zone | |
| zonefile | No | Initial zone content in RFC 1035 zonefile format (alternative to rrsets) |