opnsense_dns_infra
Diagnose upstream DNS connectivity issues by dumping the Unbound infrastructure cache, including upstream server RTT, EDNS support, and lame delegation status.
Instructions
Dump the Unbound infrastructure cache showing upstream server RTT, EDNS support, and lame delegation status. Useful for diagnosing upstream DNS connectivity issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/dns.ts:433-436 (handler)The handler for the 'opnsense_dns_infra' tool. It calls the OPNsense Unbound diagnostics API endpoint '/unbound/diagnostics/dumpinfra' to dump the infrastructure cache showing upstream server RTT, EDNS support, and lame delegation status. Returns the raw JSON result.
case "opnsense_dns_infra": { const result = await client.get("/unbound/diagnostics/dumpinfra"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/tools/dns.ts:230-234 (schema)The tool definition/schema for 'opnsense_dns_infra'. It declares the tool name, description ('Dump the Unbound infrastructure cache...'), and an empty inputSchema (no parameters required).
name: "opnsense_dns_infra", description: "Dump the Unbound infrastructure cache showing upstream server RTT, EDNS support, and lame delegation status. Useful for diagnosing upstream DNS connectivity issues.", inputSchema: { type: "object" as const, properties: {} }, }, - src/index.ts:26-26 (registration)Import of dnsToolDefinitions from the dns.ts file, which includes the opnsense_dns_infra definition.
import { dnsToolDefinitions, handleDnsTool } from './tools/dns.js'; - src/index.ts:59-59 (registration)Registration of the DNS tool handler: all dnsToolDefinitions (including opnsense_dns_infra) are mapped to handleDnsTool in the toolHandlers map.
for (const def of dnsToolDefinitions) toolHandlers.set(def.name, handleDnsTool);