Change a domain's nameservers
lw_domain_nameservers_setChange a domain's registrar-assigned nameservers to exactly two new hosts, with a preview and confirmation step to verify current and live NS before DNS cutover.
Instructions
Change the nameservers assigned to a domain at the registrar (bleed Network/DNS/Domain/Nameserver/assign). The API takes exactly two (ns1, ns2); for more than two use the portal (lw_domain_portal_steps topic=nameservers). This is a DNS cutover: the new provider must already serve a complete zone. Preview shows current assigned and live NS vs the new pair, checks for DNSSEC DS records over DNS-over-HTTPS, and checks for a Liquid Web DNS zone when moving to Liquid Web nameservers. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview first).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"nameservers": "<nameservers>"
},
"name": "lw_domain_nameservers_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to change, e.g. example.com. | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| nameservers | Yes | Exactly two nameservers, e.g. ["ada.ns.cloudflare.com", "bob.ns.cloudflare.com"]. | |
| confirm_token | No | Leave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |