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:
- Tenant allowlist. If the domain matches, return the upstream answer immediately. Nothing else fires.
- Tenant blocklist. If the domain matches, return a block.
- Curated threat feeds. Malware, phishing, NRD quarantine, DGA heuristics.
- Category filters. Adult, gambling, social, drugs, and so on.
- 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
| Input | How to load |
|---|---|
| Hosts file URL | Console: paste URL, choose refresh interval |
| Domain text file | Upload directly or via API |
| AdBlock Plus list | Console: paste URL |
| RPZ AXFR | Configure primary and TSIG key |
| RPZ HTTPS | Provide signed URL |
| API push | POST /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.