get_domain_info
Retrieve domain details including expiry date, nameservers, WHOIS contacts, privacy and lock status from the Dynadot registrar.
Instructions
Get detailed information about a domain including expiry date, nameservers, WHOIS contacts, privacy status, lock status, and more.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to query (e.g., 'example.com') |
Implementation Reference
- src/tools/domain.ts:154-181 (handler)The MCP tool registration and handler implementation for 'get_domain_info'.
// ─── get_domain_info ────────────────────────────────────────── server.tool( "get_domain_info", "Get detailed information about a domain including expiry date, nameservers, " + "WHOIS contacts, privacy status, lock status, and more.", { domain: z.string().describe("Domain name to query (e.g., 'example.com')"), }, async ({ domain }) => { try { const result = await client.getDomainInfo(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 domain info: ${msg}` }, ], isError: true, }; } } ); - The underlying Dynadot client method that executes the API call to fetch domain info.
async getDomainInfo(domain: string): Promise<DynadotResponse> { return this.call("domain_info", { domain }); }