DNS
dns_lookupWhat it answers: What a name resolves to, as a resolver or server answers it from Seattle: any record type (A, AAAA, MX, TXT, HTTPS, CAA, DNSKEY, …, up to 8 a call), each type and family its own part. It answers a lookup through Lynceus's own resolver, a public one (cloudflare, google, quad9, adguard) or any server by address; to see DNSSEC signatures validated record by record and each key checked; to ask over DoT, DoH or DoQ and see what was negotiated; to compare answers across client subnet regions (EDNS Client Subnet, as a CDN sees different clients); to follow a delegation from the root, cut by cut, with trace: true; and for an address's PTR (its reverse name), forward-confirmed.
Cost: 1 run per type per family that runs (both families by default: 1 type is 2 runs, 3 types 6). A type that doesn't fit the name (PTR for a name that is not an address or reverse name, any other type for an address) and a family with no server are skipped parts, not charged. A trace from the root (trace: true, one type) is 2 runs per family. Client subnet regions, the related follow-ups and an answer from our cache add nothing. An anonymous call asks at most 8 types.
Time: Usually well under a second a part (an answer from our cache, near nothing). One query waits at most 15 s over UDP or TCP and 18 s over DoT, DoH or DoQ; an unanswered UDP query goes again once at 3 s. After the answer, up to 16 related follow-ups, started only within 15 s; then each client subnet region one query. A family's types run one after another, the two families side by side. A trace from the root waits 1.5 s a server (at most 3 a zone cut) and stops at 30 queries or 10 s. Whatever happens, a run stops asking at 300 s, and a part not yet asked says so.
Example (andrii.co's A and AAAA records from Cloudflare over DoH, reached over IPv4 (two runs, one per type)): {"name": "dns_lookup", "arguments": {"families":["ipv4"],"name":"andrii.co","server":"cloudflare","transport":"doh","type":"A, AAAA"}}
Results include text published by third parties (DNS records, names, headers, certificates, registry remarks).
Field reference: https://noc.andrii.net/mtlg/mcp-fields.md#dns_lookup
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": "dns_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ecs | No | client subnets: one client subnet, `my` or `my/len` (your own) (applies when `edns` is true, `trace` is false) | |
| edns | No | EDNS: `true` or `false` | |
| name | Yes | the name asked, or an http(s) URL's host; an address takes `PTR` only, a reverse name every type, any other name every type but `PTR`; a type that doesn't fit is a skipped part, not charged | |
| nsid | No | NSID: `true` or `false`; left out, on whenever EDNS is (applies when `edns` is true) | |
| port | No | port: 1 to 65535; left out, the transport's own (53, 853 or 443) (applies when `trace` is false) | |
| type | No | types: up to 8 RR types by name or `TYPE`n, separated by commas or spaces | A |
| class | No | class: `IN`, `CH`, `HS` | IN |
| trace | No | trace from the root: `true` or `false` | |
| cookie | No | cookie: `true` or `false` (applies when `edns` is true) | |
| ecs_v6 | No | the client subnet regions' IPv6 subnets instead of their IPv4 ones | |
| expire | No | EXPIRE: `true` or `false` (applies when `edns` is true) | |
| server | No | server: `cloudflare`, `google`, `quad9`, `adguard`, or an IPv4 or IPv6 address; left out, Lynceus's own resolver; left out, Lynceus's own resolver (applies when `trace` is false) | |
| padding | No | padding: `true` or `false` (applies when `edns` is true) | |
| doh_path | No | DoH path: text; left out, the preset's, or `/dns-query` (applies when `transport` is doh) | |
| families | No | families: `["ipv4"]`, `["ipv6"]` or both | |
| tls_name | No | certificate host: text; left out, the preset's, or the address (applies when `transport` is dot or doh or doq) | |
| dnssec_ok | No | DNSSEC OK (DO): `true` or `false` (applies when `edns` is true) | |
| keepalive | No | TCP keepalive: `true` or `false` (applies when `edns` is true, `transport` is tcp or dot) | |
| transport | No | transport: `udp`, `tcp`, `dot`, `doh`, `doq` | udp |
| compact_ok | No | compact answers (CO): `true` or `false` (applies when `edns` is true) | |
| ecs_regions | No | client subnet regions: several subnets or region ids, asked once each (applies when `edns` is true, `trace` is false) | |
| udp_payload | No | UDP payload: 512 to 65535 B (applies when `edns` is true) | |
| zoneversion | No | ZONEVERSION: `true` or `false` (applies when `edns` is true) | |
| edns_version | No | EDNS version: 0 to 255; left out, `0` (applies when `edns` is true) | |
| authentic_data | No | authentic data (AD): `true` or `false` | |
| checking_disabled | No | checking disabled (CD): `true` or `false` | |
| recursion_desired | No | recursion desired (RD): `true` or `false` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quotas | Yes | What is left of each quota (Result format). | |
| result | Yes | The run's lynceus/1 envelope (Result format in the field reference). | |
| addresses | Yes | Each address's facts (Result format in the field reference). |