dns
DNS resolution via the Go stdlib resolver (which respects your system's /etc/resolv.conf or /etc/nsswitch.conf).
Usage
bash
native-mcp dns [--timeout DUR]| Flag | Default | Description |
|---|---|---|
--timeout | 5s | Per-lookup timeout. |
Tools
lookup
| Field | Type | Required | Description |
|---|---|---|---|
type | enum(a, aaaa, mx, txt, cname, ns, ptr) | yes | Record type. |
host | string | yes | Hostname (or IP for ptr). |
Output format depends on the record type:
a/aaaa— one IP per line, sortedmx—<priority> <host>per line, sorted by prioritytxt— one TXT record per linecname— single canonical namens— one nameserver per line, sortedptr— one PTR name per line
Register in Claude Code
bash
claude mcp add native-dns native-mcp dns