Import DNS Records
import_dns_recordsBulk create DNS records on a Porkbun domain in one call for transferred domains. Use an exact list or a live scan; idempotent, safe to re-run, skips existing records.
Instructions
Create many DNS records on a Porkbun domain in one call — the companion to scan_dns_records for keeping a transferred domain working. Pass records to import an exact list (preferred when you read the zone from the old registrar's API), or omit it entirely to import whatever a live scan of the domain discovers. Idempotent: a record that already exists is reported in skipped, not failed, so this is safe to re-run and safe as a converge step. Individual failures are listed in failures while everything else still imports. NS and SOA entries are ignored on purpose — they describe the delegation, not the zone. Important: imported records have no effect until the domain actually points at Porkbun's nameservers, so check get_nameservers afterwards and use update_nameservers when the user is ready to cut over — when the domain is delegated elsewhere the response also says so in warnings. Maximum 500 records per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Porkbun domain to create the records on, e.g. `example.com` | |
| records | No | Exact records to create. Omit to import what a live scan of the domain finds. |