Skip to main content
Glama
CloudWaddie

OSINT MCP Server

dns_lookup_passive

Retrieve passive DNS records from Robtex to analyze domain history and infrastructure without sending queries to the target domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to lookup passive DNS records from Robtex

Implementation Reference

  • The implementation of the dns_lookup_passive tool's underlying logic, which calls the Robtex API to fetch passive DNS records.
    async getDns(domain: string): Promise<DnsResult> {
      try {
        const data = await this.fetch<any>(`pdns/forward/${domain}`, {
          method: "GET",
        });
    
        const records = data.map((r: any) => ({
          type: r.rrtype,
          value: r.rrdata,
        }));
    
        return DnsResultSchema.parse({
          domain,
          records,
        });
      } catch (error) {
        if (error instanceof McpError) throw error;
        throw new McpError(
          ErrorCode.InternalError,
          `Robtex DNS error: ${(error as Error).message}`
        );
      }
    }
  • src/index.ts:134-143 (registration)
    Registration of the dns_lookup_passive tool in the MCP server.
    server.tool(
      "dns_lookup_passive",
      { domain: z.string().describe("Domain name to lookup passive DNS records from Robtex") },
      async ({ domain }) => {
        const result = await robtexClient.getDns(domain);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      }
    );

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/CloudWaddie/osint-mcp'

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