GnistAI GnistAI
Log in

DNS Lookup

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

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Utilities

Data source: Cloudflare DNS-over-HTTPS

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/dns-lookup/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-dns-lookup": {
      "url": "https://context.gnist.ai/mcp/dns-lookup/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
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"}}}'

API REST API

API Root https://context.gnist.ai/rest/dns-lookup/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/dns-lookup/dns_lookup?domain=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/dns-lookup/dns_lookup",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "domain": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc dns-lookup

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

dns_lookup
Look up DNS records for a domain.
ParameterTypeRequiredDescription
domainstringrequired
record_typestringoptional (default: "A")
dns_mx_lookup
Look up MX (mail exchange) records for a domain.
ParameterTypeRequiredDescription
domainstringrequired
reverse_dns
Perform reverse DNS lookup — find hostnames associated with an IP address.
ParameterTypeRequiredDescription
ipstringrequired
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related