opnsense_dns_list_overrides
Retrieve all DNS host overrides including A, AAAA, and CNAME records configured in Unbound.
Instructions
List all DNS host overrides (A/AAAA/CNAME records) configured in Unbound
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/dns.ts:79-83 (registration)Tool definition/registration with name, description, and empty input schema
{ name: "opnsense_dns_list_overrides", description: "List all DNS host overrides (A/AAAA/CNAME records) configured in Unbound", inputSchema: { type: "object" as const, properties: {} }, }, - src/tools/dns.ts:293-296 (handler)Handler that calls the OPNsense API endpoint /unbound/settings/searchHostOverride to list all DNS host overrides
case "opnsense_dns_list_overrides": { const result = await client.get("/unbound/settings/searchHostOverride"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:59-59 (registration)Maps opnsense_dns_list_overrides to the handleDnsTool handler in the MCP server tool registry
for (const def of dnsToolDefinitions) toolHandlers.set(def.name, handleDnsTool);