dns_reverse
Find hostnames associated with an IP address using reverse DNS lookup. This tool helps identify servers or devices connected to specific IPs for reconnaissance and analysis.
Instructions
Perform reverse DNS (PTR) lookup for an IP address. Returns associated hostnames.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address for reverse lookup |
Implementation Reference
- src/dns/index.ts:129-131 (handler)The implementation of the dnsReverse function which performs a reverse DNS lookup using Node's dns promises API.
export async function dnsReverse(ip: string): Promise<string[]> { return dns.reverse(ip); } - src/protocol/tools.ts:37-44 (registration)The registration of the 'dns_reverse' tool, including its input schema and execution handler.
const dnsReverseTool: ToolDef = { name: "dns_reverse", description: "Perform reverse DNS (PTR) lookup for an IP address. Returns associated hostnames.", schema: { ip: z.string().describe("IP address for reverse lookup"), }, execute: async (args) => json(await dnsReverse(args.ip as string)), };