opnsense_dns_block_domain
Block unwanted domains in OPNsense DNS by creating domain overrides with empty server entries. Use this tool to prevent access to specific websites or services through DNS filtering.
Instructions
Block a domain by adding a domain override with an empty server. Run opnsense_dns_apply afterwards to activate.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to block (e.g. 'ads.example.com') | |
| server | No | Server to redirect to (empty string = block, default: empty) | |
| description | No | Optional description |