DNS lookup
dnsLookupResolve a domain's live DNS records (A, AAAA, MX, NS, CNAME, SOA, TXT, SPF) or run a reverse PTR lookup on an IP to see where a domain points right now.
Instructions
Resolve a domain's current DNS records live: A, AAAA, MX, NS, CNAME, SOA, TXT and SPF. With ipAddress it also does a reverse (PTR) lookup of an IP address. Use this to see where a domain points now: its IP addresses, mail servers, name servers, or TXT records such as SPF, DKIM and DMARC. For how records changed over time use dnsHistory. To go the other way and find domains that use a given IP, mail server or name server use reverseDnsLookup. For many domains or IPs at once use bulkDnsLookup. type=all (the default) returns every record type in one call; pass one type or a short list such as mx,txt to keep the result small. cnameDepth follows CNAME chains, for example for www hosts behind a CDN. Returns the records grouped by type. A domain with no records of the requested type returns an empty list or a "no data found" message. Behavior: read-only. Makes one request to the WhoisFreaks API using your WhoisFreaks API key (the WHOISFREAKS_API_KEY environment variable, or on the hosted server the key sent with the request) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: key invalid, or plan or credits used up (HTTP 401), domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dnsLookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Record types to return: 'all' (the default), one type such as MX, or a comma-separated list such as a,mx,ns. Supported: A, AAAA, MX, NS, CNAME, SOA, TXT, SPF. | |
| format | No | Response format. Default: json | |
| ipAddress | No | IP address for a reverse (PTR) lookup. Example: 8.8.8.8. Pass it instead of, or together with, domainName. | |
| cnameDepth | No | How many CNAME hops to follow before collecting records, 0 to 4. Default: 0 | |
| domainName | No | Domain name to query DNS records for. Example: google.com. Optional when ipAddress is given. | |
| relativeRecords | No | true (the default): include the records of CNAME targets. false: only the records on the queried name. |