Import DNS zone
import_dns_zoneImport BIND-style forward DNS records into a native VPSnet zone and publish them to public DNS. Use replace=true to overwrite non-system records or false to upsert.
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.
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 |