Skip to main content
Glama

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
NameRequiredDescriptionDefault
hostYesNameserver hostname to update
ipYesNew IP address

Implementation Reference

  • 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 });
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/dynadot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server