webservers
Find IP addresses for domains by querying A and AAAA DNS records, returning both IPv4 and IPv6 addresses along with domain representations.
Instructions
Get the IP addresses (both IPv4 and IPv6) for a domain by looking up A and AAAA records. Also returns the punycode and unicode domain representations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to look up IP addresses for (e.g. example.com) |
Implementation Reference
- src/tools.ts:195-209 (handler)The handler function for the 'webservers' tool, which calls the apiPost function to fetch records.
async ({ domain }) => { try { const result = await apiPost("/v1/records/webservers", { domain }); return { content: [{ type: "text", text: formatJson(result) }] }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } - src/tools.ts:189-194 (registration)Tool registration for 'webservers' in the MCP server, defining name, description, and input schema.
server.tool( "webservers", "Get the IP addresses (both IPv4 and IPv6) for a domain by looking up A and AAAA records. Also returns the punycode and unicode domain representations.", { domain: z.string().describe("Domain name to look up IP addresses for (e.g. example.com)"), },