dns_override
Manage Unbound host overrides to control DNS resolution on OPNsense. Create, update, delete, list, or flush entries to map hostnames to IP addresses.
Instructions
Manage Unbound host overrides. Call action='help' for each action's fields and rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | [flush] name: flush one hostname via unbound-control (default); restart: restart Unbound via API (clears full cache) | |
| uuid | No | Record to act on, identified by a list action. | |
| apply | No | Apply now rather than leaving the change staged. The default differs by action; action='help' reports each one. | |
| action | Yes | Operation to run. 'help' lists fields. | |
| domain | No | [create] Domain (e.g. 'local' or 'example.com') | |
| search | No | [list] Filter by hostname, IP, or description | |
| server | No | [create, update] IP address this hostname resolves to | |
| enabled | No | Target state, set explicitly rather than flipped. | |
| hostname | No | [create, flush] Hostname (without domain, e.g. 'myserver') | |
| description | No | Free-text note stored on the record. |