DNS lookup
dnsLookupResolve 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. Records reached through a CNAME carry the target's name: a DKIM key published through one, as Microsoft 365 does, comes back under the provider's host name. A domain's SPF policy (v=spf1) is listed as an SPF entry (type 99), apart from its other TXT records, even though domains publish it as an ordinary TXT record; the label isn't a sign of the obsolete SPF record 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 for your WhoisFreaks account (identified by the WHOISFREAKS_API_KEY environment variable or, on the hosted server, by the API key sent with the request or the account connected with OAuth) 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: the API key was refused (invalid, or plan or credits used up) with what to do next, 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. |