Update Nameservers
update_nameserversReplace the complete nameserver set for a domain in your Porkbun account, overwriting any existing entries. Use dry_run to validate the change before it is applied.
Instructions
Replace the nameservers for a domain in the authenticated account. This is a full replacement, not an append — the supplied list becomes the complete set of nameservers. Most TLDs require 2-13 entries. Setting custom nameservers disables Porkbun's free DNS hosting for the domain. Idempotent: applying the same NS list twice is a no-op. The list is applied as a set — the registry may return it in a different order, so do not expect get_nameservers to echo your ordering back, and do not treat a reordering as drift.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to update, e.g. `example.com` | |
| dry_run | No | If true, validate only — returns wouldSucceed without changing the nameservers. | |
| nameservers | Yes | Full list of nameservers (e.g. `['ns1.example.com', 'ns2.example.com']`). Minimum 2, maximum 13. |