Skip to main content
Glama
NsLookup-io

nslookup.io MCP Server

by NsLookup-io

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
NameRequiredDescriptionDefault
domainYesDomain name to look up IP addresses for (e.g. example.com)

Implementation Reference

  • 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)"),
      },

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/NsLookup-io/nslookup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server