Policy evaluation order
For each query, the resolver goes through this list and stops at the first match:
| Step | Check | Outcome |
|---|---|---|
| 0 | Operator-level blocks (legal, abuse) | block, EDE 15 |
| 1 | Your rewrites (exact name, then wildcard) | your records |
| 2 | Your allowlist | allow, but SafeSearch and YouTube restricted mode still rewrite |
| 3 | Your denylist | block, EDE 17 |
| 4 | Security lists | block, EDE 17 |
| 5 | Parental: blocked services and categories (including those a schedule blocks at that time), then SafeSearch and YouTube restricted mode | block, EDE 17, or rewrite to the safe endpoint |
| 6 | Blocklists (ads, trackers, native tracking) | block, EDE 17 |
| – | nothing matched | resolved by Unbound |
This order has these results:
- An allowlisted name skips the security lists. Keep the allowlist narrow.
- An allowlisted name skips parental categories and services, but not SafeSearch or YouTube restricted mode.
- Your own rewrite wins over everything except operator blocks. This includes SafeSearch for that name.
- The public path (no profile) applies only step 0.
After resolution
Section titled “After resolution”Two more steps run on the answer of an allowed query. Each step can turn the answer into a block:
- CNAME uncloaking: every name in the CNAME chain of the answer goes through the same policy.
- DNS rebinding protection: if the answer for a public name contains a
private address, opdns blocks the name. The extra text is
rebinding: <address>.
Matching
Section titled “Matching”A rule matches the queried name and its parents. For ads.example.com, the
resolver tries ads.example.com, example.com and com. =name matches
only the exact name. *.name matches only the children. For this reason,
list compilers reject bare top-level domains. See
Rules.