Import DNS zone
import_dns_zoneImport BIND-style forward DNS records into a native zone, either upserting them or replacing existing non-system desired-state records, to update public DNS answers after publication.
Instructions
Import BIND-style forward DNS records into a native zone. These records can change public DNS answers after publication. Set replace=true to replace non-system desired-state records; false upserts imported records. PTR/reverse DNS, SOA, DNSSEC wire records, apex NS, and LUA are skipped or rejected by the API. Requires dns:write when using an API key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"zone_id": "<zone_id>",
"zonefile": "<zonefile>"
},
"name": "import_dns_zone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | If true, delete existing non-system desired-state records before importing. Defaults to false. | |
| zone_id | Yes | DNS zone ID | |
| zonefile | Yes | BIND-style zone file contents to import |