DNS Import & Export
Endpoints for importing and exporting hosted DNS zones.
Import a DNS zone
Import BIND zone file contents or upload a BIND, CSV, XLSX, or ODS zone export into a hosted DNS zone. The import may replace the complete zone or merge records using Domain Chief's DNS conflict rules.
A preview is optional. When you supply a preview fingerprint, the import is rejected if its records or the current zone have changed since that preview. The local records are updated before the response, and DNS publication continues afterwards.
path Parameters
domainNameOrIddestination full domain name or ID
Import a DNS zone › Request Body
modeHow imported records should interact with the current zone.
zoneBIND zone file contents.
source_domainThe zone name used to interpret relative record names. Defaults to the destination domain.
fingerprint^[a-f0-9]{64}$An opaque fingerprint returned by a previous preview.
Import a DNS zone › Responses
No content
Preview a DNS zone import
Parse BIND zone file contents or an uploaded BIND, CSV, XLSX, or ODS zone export and return the changes that would be made. This endpoint does not change the zone.
Supply the returned fingerprint to the import endpoint to prevent applying the import when its records or the current zone have changed since this preview.
path Parameters
domainNameOrIddestination full domain name or ID
Preview a DNS zone import › Request Body
modeHow imported records should interact with the current zone.
zoneBIND zone file contents.
source_domainThe zone name used to interpret relative record names. Defaults to the destination domain.
Preview a DNS zone import › Responses
DNSRecordImportPlan
source_domainThe zone name used to interpret relative record names in the imported data.
destination_domainThe hosted DNS domain targeted by the import.
modeThe requested import behavior.
replace Replace the current zone with the imported records. |
merge Keep non-conflicting records and replace only records that conflict with the import. |
fingerprintAn opaque identifier for this imported data and the current destination zone.
DNS records the import would add.
DNS records the import would remove.
Existing DNS records the import would leave unchanged.
Conflicts that must be resolved before the import can be applied. The code is stable for client-side handling; the message is fallback display text.
Export DNS zone
Download every record in the hosted DNS zone as BIND-compatible plain text. The export includes records managed by Domain Chief features, but not record comments or metadata.
path Parameters
domainNameOrIdfull domain name or ID
Export DNS zone › Responses
The DNS zone export.