Use PUT /v2/domains/{domainId}/nameservers to request a complete replacement nameserver list for an owned domain. Prepare the destination DNS service before submitting the registrar change.
IN THIS ARTICLE
01 Prepare the destination
- Read the domain's current desired nameservers and confirm its public delegation.
- Create or verify the full destination zone, including website, mail, verification and subdomain records.
- Query every intended destination nameserver directly to confirm consistent answers.
- Plan DNSSEC separately. An old parent DS must not remain incompatible with the new signing arrangement.
- Obtain the domain owner's approval for the delegation change and retain the previous list for recovery.
02 Submit the full list
Your credential needs domains:nameservers. Resolve the current domain identifier and use JSON with a stable idempotency key.
PUT /v2/domains/DOMAIN_ID/nameservers
Idempotency-Key: nameserver-change-local-1042
Content-Type: application/json
{
"nameservers": ["ns1.example.net", "ns2.example.net"]
}
Replace the documentation hostnames with the complete actual list. The values are nameserver hostnames, not website URLs or IP addresses. The allowed count and registry checks depend on the TLD and provider.
03 Verify the change
Follow the returned operation to its provider result. Then inspect parent delegation and query the intended authoritative servers. The nameserver GET route returns stored desired records, so it is not by itself proof that the registry has published the change.
Keep the old DNS service functioning while cached delegation remains in use. A record's TTL and the parent delegation's cache lifetime are different values.
04 Avoid common mistakes
Do not mix unrelated old and new provider nameservers as an informal fallback unless both are intentionally configured to serve the same zone. Otherwise users can receive inconsistent website or mail answers.
Adding an NS record inside a zone is not the same as replacing the domain's registrar nameservers. Creating glue hosts is also a separate operation needed for certain private nameserver arrangements.
What should I do if the nameserver update fails or times out?
For a timeout, inspect the original operation before resubmission. Correct provider validation or ownership problems directly. If the destination is wrong, use a reviewed corrective change and verify its outcome; repeated blind switching can prolong inconsistent caches.
Keep the original request ID and full intended nameserver list. If an unchanged transport retry is appropriate, retain the original idempotency key. Check parent delegation independently before deciding whether a corrective update is necessary.