Skip to main content
Glama

register_nameserver

Register a custom nameserver with a hostname and IP address to manage DNS records for domains.

Instructions

Register a custom nameserver (glue record) with a hostname and IP address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesNameserver hostname (e.g., 'ns1.example.com')
ipYesIP address for the nameserver

Implementation Reference

  • Tool handler definition for "register_nameserver" in src/tools/dns.ts.
    server.tool(
      "register_nameserver",
      "Register a custom nameserver (glue record) with a hostname and IP address.",
      {
        host: z.string().describe("Nameserver hostname (e.g., 'ns1.example.com')"),
        ip: z.string().describe("IP address for the nameserver"),
      },
      async ({ host, ip }) => {
        try {
          const result = await client.registerNameserver(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 register nameserver: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • Implementation of the API call for register_nameserver in the DynadotClient class.
    async registerNameserver(host: string, ip: string): Promise<DynadotResponse> {
      return this.call("register_ns", { 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