Create DNS zone
create_zoneCreate DNS zones in primary or secondary mode. For primary, initialize from a zone file; for secondary, specify external primary nameservers.
Instructions
Create a new DNS zone. Use mode "primary" for zones managed at Hetzner, or "secondary" with primary_nameservers to transfer the zone from external primaries. A primary zone can optionally be initialized from a zone file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Default Time To Live in seconds (60 to 2147483647) | |
| mode | Yes | Mode of the zone | |
| name | Yes | Name of the zone, e.g. "example.com" (without trailing dot) | |
| labels | No | User-defined labels (key/value pairs) | |
| zonefile | No | Zone file (BIND format) to initialize a primary zone with. Ignored for secondary zones. | |
| primary_nameservers | No | Primary nameservers to transfer the zone from (secondary zones) |