net
Run network diagnostics: resolve DNS records, check TCP port connectivity, list listening ports, show local interfaces, and ping hosts.
Instructions
Network probes: dns (A/AAAA/MX/TXT/CNAME/NS/PTR lookup), tcp_check (is host:port accepting connections, with timing), listening (which ports are open on this machine, and which pid owns them), interfaces (local addresses), ping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Hostname or IP for dns, tcp_check and ping. | |
| port | No | tcp_check: port to connect to. listening: only report this port. | |
| type | No | dns: record type. Default A. | |
| count | No | ping: how many packets. Default 3. | |
| ports | No | tcp_check: several ports at once. | |
| action | Yes | Which probe to run. | |
| max_bytes | No | Byte cap on returned output. | |
| timeout_ms | No | Per-probe timeout. Default 5000. |