opnsense_dns_diagnostics
Dump the current Unbound DNS cache to diagnose DNS resolution issues.
Instructions
Dump the current Unbound DNS cache for diagnostic purposes
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opnsense_dns_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/dns.ts:184-193 (registration)Tool definition/registration for 'opnsense_dns_diagnostics' in the dnsToolDefinitions array, describing it as 'Dump the current Unbound DNS cache for diagnostic purposes' with no input parameters.
{ name: "opnsense_dns_flush_cache", description: "Flush the Unbound DNS resolver cache", inputSchema: { type: "object" as const, properties: {} }, }, { name: "opnsense_dns_diagnostics", description: "Dump the current Unbound DNS cache for diagnostic purposes", inputSchema: { type: "object" as const, properties: {} }, }, - src/tools/dns.ts:379-382 (handler)Handler implementation: executes GET /unbound/diagnostics/dumpcache and returns the raw result as JSON.
case "opnsense_dns_diagnostics": { const result = await client.get("/unbound/diagnostics/dumpcache"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:26-26 (registration)Import of dnsToolDefinitions and handleDnsTool from the dns tools module.
import { dnsToolDefinitions, handleDnsTool } from './tools/dns.js'; - src/index.ts:59-59 (registration)Registration of handleDnsTool as the handler for all DNS tool definitions, including opnsense_dns_diagnostics.
for (const def of dnsToolDefinitions) toolHandlers.set(def.name, handleDnsTool);