opnsense_dns_blocklist_set
Configure Unbound DNS Blocklists: toggle master enable, pick built-in sources by ID, add custom blocklist URLs, and choose NXDOMAIN vs null IP response. Destructive change requires confirmation.
Instructions
Update the Unbound DNSBL configuration: enable/disable, select multiple built-in source IDs, set custom blocklist URLs, configure NX-domain mode. After this, call opnsense_dns_apply to activate. DESTRUCTIVE: requires explicit confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Master enable for the DNSBL feature | |
| sources | No | List of built-in source IDs to enable (use opnsense_dns_blocklist_sources_list to discover available IDs, e.g. 'hgz002', 'sb', 'ag') | |
| custom_lists | No | Comma- or newline-separated list of custom blocklist URLs (one per line) | |
| nxdomain | No | Return NXDOMAIN instead of 0.0.0.0 for blocked entries | |
| confirm | Yes | Must be true to apply the change |