GnistAI GnistAI
Log in

DNS Lookup

DNS record lookup — A, AAAA, MX, NS, TXT, CNAME, SOA, SRV, CAA, and reverse DNS.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: validation enrichment type type validation enrichment validation enrichment lifecycle: maintained lifecycle lifecycle maintained maintained Utilities

Data source: Cloudflare DNS-over-HTTPS

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/dns-lookup/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

dns_lookup

Look up DNS records for a domain.

Returns the DNS records of the specified type. Supported types:
A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, PTR.

Args:
domain: Domain name to query (e.g. "example.com").
record_type: DNS record type (default "A"). One of: A, AAAA, CNAME, MX, NS, TXT, SOA, SRV, CAA, PTR.

ParameterTypeRequiredDescription
domainstringrequired
record_typestringoptional (default: "A")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "dns_lookup",
    "arguments": {
      "domain": "example"
    }
  }
}
dns_mx_lookup

Look up MX (mail exchange) records for a domain.

Returns the mail servers responsible for receiving email for the domain,
sorted by priority (lower = preferred).

Args:
domain: Domain name to query (e.g. "gmail.com").

ParameterTypeRequiredDescription
domainstringrequired
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "dns_mx_lookup",
    "arguments": {
      "domain": "example"
    }
  }
}
reverse_dns

Perform reverse DNS lookup — find hostnames associated with an IP address.

Args:
ip: IPv4 or IPv6 address (e.g. "8.8.8.8" or "2001:4860:4860::8888").

ParameterTypeRequiredDescription
ipstringrequired
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "reverse_dns",
    "arguments": {
      "ip": "example"
    }
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/dns-lookup/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "dns_lookup", "arguments": {"domain": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/dns-lookup/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "dns_lookup",
    "arguments": {
      "domain": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Utilities)

Resources