SecDNS

RPZ import, AdBlock Plus syntax and RPZ-based allowlist overrides

SecDNS now imports standard RPZ zone files, parses AdBlock Plus syntax for custom blocklists, and lets RPZ allowlists override category blocks per profile.

RPZ import, AdBlock Plus syntax and RPZ-based allowlist overrides

This release closes a long-standing feature gap for teams migrating from legacy DNS firewalls. You can now import existing Response Policy Zone (RPZ) files unchanged, mix AdBlock Plus filter syntax into custom blocklists, and use RPZ allowlists to override broader category blocks on a per-profile basis.

What's new

  • RPZ file import. The /admin/profiles/<id>/blocklists page now accepts RPZ zone files via upload or zone transfer (AXFR/IXFR over TSIG). The parser maps the standard RPZ trigger types — QNAME, IP, NSDNAME, NSIP, client-IP — onto our internal policy model and surfaces an import diff so you can confirm what changed before applying.
  • AdBlock Plus syntax for custom blocklists. Custom blocklists now parse AdBlock Plus / EasyList filter syntax in addition to hosts-file format and plain domain lists. Common directives — ||domain.com^, ||sub.domain.com^$third-party, @@||allow.example^ and basic regex anchors — are translated into equivalent DNS-level rules. Browser-only cosmetic filters are ignored because there is no DNS equivalent.
  • RPZ-based allowlist overrides. A new toggle on each profile lets RPZ PASSTHRU entries override category and feed-based blocks. This unblocks a common workflow: keep a broad "social media" category block in place while explicitly allowing one or two domains for a specific tenant or device group.

Improvements

  • The blocklist editor now shows a live "effective rule count" so you can see whether your custom list parsed cleanly.
  • Imported RPZ entries keep their original SOA serial in metadata, which makes it easier to diff against the source zone on later imports.
  • The query log filter gained a blocked-by-feed facet so you can split blocks by source (RPZ, AdBlock, hosts file, vendor feed).

Fixes

  • Fixed a parsing bug that dropped wildcard entries (*.example.com) from hosts-style lists.
  • Fixed a UI bug where the allowlist counter on the profile overview included expired entries.
  • Fixed an off-by-one in the RPZ AXFR client that occasionally missed the final record of a large zone transfer.

Migration / upgrade notes

Existing custom blocklists are unchanged — the new parsers run in addition to, not in place of, the existing logic. If you are migrating from BIND, Unbound or a commercial DNS firewall, the /docs/migration/rpz page walks through pointing your existing RPZ provider at SecDNS via AXFR with TSIG-authenticated zone transfers. The legacy "category override" flag on profiles has been deprecated in favour of the new RPZ allowlist mode and will be removed in a future release; a banner in the admin console warns affected profiles.

Frequently asked questions

What RPZ record types are supported on import?

We support the full common subset — CNAME to a sink, CNAME `.` (NXDOMAIN), CNAME `*.` (NODATA), and explicit A/AAAA rewrites. Records using local-data actions outside that subset are skipped and reported in the import diff so you can review what was dropped.

Can I mix AdBlock Plus rules with hosts-file blocklists in the same custom list?

Yes. The parser detects the syntax on a per-line basis. Cosmetic filter rules (those starting with `##`) and exception rules (`@@`) are recognised; cosmetic rules are ignored because they are a browser concept, and `@@` exceptions become explicit allowlist entries.

How does an RPZ allowlist override a category block?

Allowlist entries are evaluated before category and feed-based blocks. If a domain matches an RPZ allowlist rule with PASSTHRU semantics, the recursive query proceeds normally even if other policies would have blocked it. The query log marks the response as `allowed-by-rpz` so you can audit overrides.