Import zone file
import_zonefileReplace all DNS records in a Hetzner DNS zone by importing a BIND zone file. Requires explicit confirmation to prevent unintended data loss.
Instructions
Import a zone file (BIND format) into an existing primary zone. This REPLACES the current records of the zone. Requires confirm=true. Consider export_zonefile first as a backup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | ID or name of the zone, e.g. "example.com" | |
| confirm | No | Must be true to actually import. Ask the user for confirmation first. | |
| zonefile | Yes | Zone file content to import |