SecDNS

Custom blocklists and allowlists for SecDNS protective DNS profiles

SecDNS supports per-tenant custom blocklists, allowlists, regex rules, and RPZ imports, so you can extend the curated feeds with your own intelligence.

Custom blocklists on SecDNS

SecDNS ships with curated threat feeds covering malware, phishing, ads, trackers, and adult content. Custom blocklists let you go further: add your own private intelligence, integrate ISAC feeds, and carve precise exceptions where the defaults are too broad.

What it is

A custom blocklist is a tenant-scoped list of domains (or patterns) that you control. Entries in the list are matched against every DNS query on the profile and answered with NXDOMAIN or a sinkhole address when they hit. An allowlist is the same idea in reverse: domains that should always resolve normally, regardless of what curated feeds say.

Both lists live next to the curated feeds in the policy engine, and both follow a deterministic precedence order, so you can predict exactly what will happen to a given lookup before you ship a rule.

How it works

Every DNS query on a SecDNS resolver runs through an evaluator with a fixed precedence:

  1. Tenant allowlist. If the domain matches, return the upstream answer immediately. Nothing else fires.
  2. Tenant blocklist. If the domain matches, return a block.
  3. Curated threat feeds. Malware, phishing, NRD quarantine, DGA heuristics.
  4. Category filters. Adult, gambling, social, drugs, and so on.
  5. Default action. Resolve normally.

Custom lists support four input shapes:

  • Hosts file syntax. 0.0.0.0 ad.example.com, one per line.
  • Domain-only. ad.example.com, one per line.
  • AdBlock Plus syntax. ||ad.example.com^, basic subset.
  • Regex. ^.*tracker.*\.example$. Evaluated last, only on the small set of queries that did not match an exact entry.

You can also push a response policy zone (RPZ) over AXFR/IXFR or HTTPS, which is the standard way to ingest commercial threat intelligence. RPZ supports both blocks and rewrites (returning a specific IP instead of NXDOMAIN), and IXFR keeps the propagation latency in the sub-second range.

Why it matters

Curated feeds are good defaults but cannot know about your specific environment:

  • An MSP wants to block a competitor's portal on customer networks.
  • A school wants to add the local district's banned domains.
  • A SOC wants to add fresh indicators from a private ISAC.
  • A startup wants to allowlist their own staging domains that look like NRDs to the resolver.

All of those needs are solved by tenant-scoped lists, evaluated in the same pipeline as the curated feeds. There is no separate enforcement engine and no gap where a custom rule might be skipped.

How SecDNS implements it

InputHow to load
Hosts file URLConsole: paste URL, choose refresh interval
Domain text fileUpload directly or via API
AdBlock Plus listConsole: paste URL
RPZ AXFRConfigure primary and TSIG key
RPZ HTTPSProvide signed URL
API pushPOST /v1/blocklists/<id>/entries

Lists are versioned. Every change is recorded with an author, a timestamp, and a diff you can roll back. Profiles attach to lists by reference, so updating a shared corporate blocklist propagates to every profile that subscribes to it.

For teams running their own threat-intel pipeline, the API and Terraform module let you treat the blocklist like infrastructure: a CI pipeline can push the latest indicators on every commit, and the resolver will see the change within seconds across every PoP.

Frequently asked questions

What blocklist formats can I import?

Plain hosts files, AdBlock Plus syntax, domain-only lists, and RPZ zones over zone transfer (AXFR or HTTPS). Most public community lists work without conversion.

Can I write regex rules?

Yes. Regex rules let you match patterns like ^.*-login-.*\.example$. They are slower than exact matches and are evaluated last, so use them sparingly.

How do allowlists interact with curated threat feeds?

Allowlist entries override blocklists, including curated threat feeds. Use this carefully: an over-broad allowlist can re-open a category you wanted blocked.

How fresh can a custom feed be?

Hosted lists are polled on a configurable interval (default 5 minutes). Pushed updates over the API take effect within seconds. RPZ over AXFR with IXFR support updates incrementally.

Are custom lists isolated to my tenant?

Yes. Custom lists are tenant-scoped and never visible to or used by other tenants. Encrypted at rest, accessed only by the resolver process.

Is there a size limit?

Practical limits are in the tens of millions of entries per tenant. The resolver uses a hashed lookup, so list size has no measurable impact on query latency.