get_dns_lookup
Resolve hostnames or IPs as the remote host does with getent, and view /etc/resolv.conf; optionally query DNS directly with dig for a specific record type or server.
Instructions
Resolves a name or IP as apps on the host do (getent), and shows /etc/resolv.conf. use_dig=True asks DNS directly; record_type and server need it.
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>",
"host": "<host>",
"user": "<user>"
},
"name": "get_dns_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| name | Yes | ||
| port | No | ||
| user | Yes | ||
| server | No | ||
| timeout | No | ||
| use_dig | No | ||
| key_path | No | ||
| record_type | No | A | |
| password_env | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||