set_nameserver_ip
Update the IP address of a registered nameserver to maintain accurate DNS resolution for domains.
Instructions
Update the IP address of an existing registered nameserver.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Nameserver hostname to update | |
| ip | Yes | New IP address |
Implementation Reference
- src/tools/dns.ts:298-323 (handler)The handler definition for the set_nameserver_ip tool in src/tools/dns.ts.
server.tool( "set_nameserver_ip", "Update the IP address of an existing registered nameserver.", { host: z.string().describe("Nameserver hostname to update"), ip: z.string().describe("New IP address"), }, async ({ host, ip }) => { try { const result = await client.setNameserverIp(host, ip); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to update nameserver IP: ${msg}` }, ], isError: true, }; } } ); - The underlying API client method that calls the Dynadot API to update a nameserver IP.
async setNameserverIp(host: string, ip: string): Promise<DynadotResponse> { return this.call("set_ns_ip", { host, ip }); }