Dig (DNS query)
digSends a DNS query like the dig command, to Cloudflare, Google, Quad9 or a nameserver you name, and returns the full answer with flags and sections. Supports many record types, DNSSEC data and TCP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "dig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ns | No | Nameserver name or IP, only with server=custom. | |
| tcp | No | Use TCP instead of UDP. | |
| name | Yes | The name to look up, such as example.com, or an IP address for a PTR lookup. | |
| type | No | Record type. Defaults to A. | |
| norec | No | Turn recursion off (the +norec option), to ask an authoritative nameserver directly. | |
| dnssec | No | Ask for DNSSEC records (the DO flag). | |
| family | No | IP family to use. Defaults to auto. | |
| server | No | Resolver to ask. Defaults to cloudflare. Use custom with ns for a specific nameserver. |