Skip to content

Change nameserver delegation (vanity sets only)

PUT /domains/{domain}/nameservers

Operation ID: PutNameserversByDomain

Delegates the domain to one of the account’s vanity nameserver sets (vanity_set_id), or reverts it to the regfish standard nameservers (vanity_set_id: null). Free-form nameservers are intentionally NOT supported on this endpoint, externally hosted delegations must be managed in the regfish dash.

Guarded by the Domain-Guardian (ns_change rule class), domain status checks (pending transfer, cancellation) and two daily change limits: 5 changes per domain and 50 changes per account, both counted across all of your API keys and OAuth clients. Issuing another credential does not raise either limit.

NameTypeRequiredDescription
domainfqdn_relaxedyes-

nameserversUpdateRequest

FieldTypeRequiredDescription
vanity_set_idintegeryesId of one of the account’s vanity nameserver sets, or null to revert to the regfish standard nameservers. Free-form nameservers are not supported on this endpoint.
StatusTypeDescription
200nameserversResponseDelegation after the change
401ErrorUnauthorized
403ErrorBlocked by the Domain-Guardian
404ErrorDomain or vanity set not found
409ErrorDomain state or plan does not allow the change
429ErrorDaily change limit reached
500ErrorUnexpected error
FieldTypeRequiredDescription
successbooleanyesSuccess indicator
codeintegernoResponse/Error Code
responsenameserversResponseno-
Terminal window
curl -X PUT "https://api.regfish.com/domains/<domain>/nameservers" \
-H "x-api-key: $REGFISH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vanity_set_id": 0
}'

Fill in values - the call below updates as you type. Nothing is sent: the API does not currently allow browser requests from this domain (CORS). The API key is not stored.