get_nameservers
Retrieve current nameserver configurations for a domain registered with Dynadot to verify DNS settings or troubleshoot connectivity issues.
Instructions
Get the current nameservers configured for a domain.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to query |
Implementation Reference
- src/services/dynadot-client.ts:214-216 (handler)The underlying service method that makes the API call to Dynadot.
async getNameservers(domain: string): Promise<DynadotResponse> { return this.call("get_ns", { domain }); } - src/tools/dns.ts:127-151 (registration)The MCP tool registration and handler implementation for 'get_nameservers'.
server.tool( "get_nameservers", "Get the current nameservers configured for a domain.", { domain: z.string().describe("Domain name to query"), }, async ({ domain }) => { try { const result = await client.getNameservers(domain); 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 get nameservers: ${msg}` }, ], isError: true, }; } } );