Set domain nameservers
set_domain_nameserversQueue an asynchronous registrar change to replace a domain's delegated nameservers with new hostnames. Use for owned domains; provide 2-13 hostnames, not IP addresses.
Instructions
Queue an asynchronous registrar nameserver change for an owned domain. When applied, the parent zone delegates the domain to the new public nameservers, replacing the prior delegation. Nameservers must be hostnames, not IP addresses; same-domain nameserver IP records are managed separately. This does not manage DNS records or PTR. Requires domains:manage when using an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes | Owned domain ID from list_domains | |
| nameservers | Yes | 2-13 nameserver hostnames, e.g. ns1.vpsnet.com, ns2.vpsnet.com. IP addresses are not accepted. | |
| idempotencyKey | No | Optional idempotency key for the queued domain action |