Skip to main content
Glama
badchars

osint-mcp-server

by badchars

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
NameRequiredDescriptionDefault
ipYesIP address for reverse lookup

Implementation Reference

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

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

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