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
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to lookup passive DNS records from Robtex |
Implementation Reference
- src/tools/robtex.ts:12-34 (handler)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) }], }; } );