Unbound
- async OPNsenseClient.get_unbound_blocklist()
Return Unbound DNS blocklist configuration.
- Returns:
- A UUID-keyed mapping of DNSBL rows from
search_dnsbl. For legacy firmware, a mapping withlegacyset to the regular DNSBL settings. Returns an empty mapping when the endpoint is unavailable or its decoded payload has no usable rows. With errors disabled, malformed JSON follows the shared error policy and returnsNone; with errors enabled, the mappedOPNsenseErrorpropagates.
- Return type:
- async OPNsenseClient.enable_unbound_blocklist(uuid=None)
Enable Unbound DNS blocklist filtering.
- async OPNsenseClient.disable_unbound_blocklist(uuid=None)
Disable Unbound DNS blocklist filtering.