Skip to main content
Glama

add_nameserver

Add a new nameserver entry by specifying a hostname and IP address to manage DNS configuration for domains.

Instructions

Add (create) a new nameserver entry 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

  • The actual implementation of the addNameserver service method that calls the underlying Dynadot API.
    async addNameserver(host: string, ip: string): Promise<DynadotResponse> {
      return this.call("add_ns", { host, ip });
    }
  • The MCP tool registration and handler implementation for "add_nameserver".
    server.tool(
      "add_nameserver",
      "Add (create) a new nameserver entry 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.addNameserver(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 add nameserver: ${msg}` },
            ],
            isError: true,

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