Import zone file
import_zonefileReplace a DNS zone's records by importing a BIND zone file, with a two-step confirmation for safety.
Instructions
Import a zone file (BIND format) into an existing primary zone. This REPLACES the current records of the zone. The first call returns a short-lived confirmation token bound to exactly this zone file; ask the user, then call again with confirmToken. 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" | |
| zonefile | Yes | Zone file content to import | |
| confirmToken | No | Confirmation token from the previous call of this same tool with identical arguments. Omit on the first call — the server then returns a token that is valid for a few minutes. |