Operator and source blocks
Two lists apply to every profile and to the public path. They come before anything that a user sets:
| List | Blocks | Answer |
|---|---|---|
| Operator blocks | domain names | NXDOMAIN with Extended DNS Error 15 (Blocked) |
| Source blocks | client address prefixes | refused before any work (below) |
How changes reach the PoPs
Section titled “How changes reach the PoPs”You edit both lists on the Operator blocks and Source blocks pages
of the admin app. You can also use /v1/admin/operator-blocks and
/v1/admin/source-blocks on the admin API, or the command line with
opdns-cp admin operator block and source-block.
Check only on the pages (?dry_run=true in the API, --dry-run on the
command line) tests a change against the live entries. It changes nothing.
Each change is written to object storage in the same database transaction
(operator/blocks.json, operator/sources.json). The change is announced
to the PoPs (server locations) with its version and SHA-256. The PoPs
reload at once. As a fallback, they also poll every 30 seconds.
A PoP refuses a file if its content does not match the announced checksum.
It also refuses a file that is older than the announced version. It then
keeps its current rules and tries again with backoff. The counter
opdns_edge_operator_file_refused_total{file,reason} counts the refusals.
The block file is also signed with the list signing key
(operator/blocks.json.sig). As a result, the api and the command line
need OPDNS_LISTS_KEY_FILE. A PoP refuses an unsigned or badly signed file
the same way (reasons unsigned and signature). If someone deletes the
object, the blocks stay in place.
The counter opdns_edge_operator_block_hits_total{entry} counts each hit
per entry id. CSAM entries are counted only in the csam total. The audit
log records every change. Removed and expired entries are kept, for the
record and for the transparency report. Include removed and expired
entries shows them.
Both lists apply on the PoPs only. Self-hosted nodes receive neither list.
Operator blocks
Section titled “Operator blocks”The operator blocks and takedowns policy says when to use them:
- Orders that bind opdns
- Confirmed abuse against the service or its users
- The designated CSAM list
Never use them for copyright notices or for requests outside legal process. The public Operator blocks page explains what users see and how they appeal a block.
| Field | Notes |
|---|---|
| Pattern | profile rule syntax: example.com blocks the name and every name under it, =example.com blocks only that name, *.example.com blocks only the names under it. Use exact names when you can |
| Reason | one of the three reason codes below |
| Public reference | the ticket or order id, up to 100 characters. Clients see it, and it is the reference in the transparency report |
| Requester | who asked for the block (the court, agency, registry or reporter), up to 200 characters. It is recorded for the transparency report, and never published to the PoPs or to clients |
| Internal note | approval note and pointers to evidence, up to 1,000 characters. It is never published |
| PoPs, jurisdictions | scope (below). If both are empty, the entry applies fleet-wide |
| Expires | optional. Set it when an order has an end date |
Reason codes
Section titled “Reason codes”| Code | For | Scope | What a client sees |
|---|---|---|---|
legal_order |
a court or authority order that binds opdns, reviewed as valid | the issuing jurisdiction | EDE 15, extra text legal_order <reference> |
abuse |
confirmed malware command-and-control or DGA infrastructure, phishing of opdns itself, names that break the resolver | fleet-wide, with an expiry (at most 30 days by policy) | EDE 15, extra text abuse <reference> |
csam |
an entry from the designated hotline list | always fleet-wide (the API refuses a scope) | EDE 15, extra text csam and nothing else |
The code is the only operator text that a client sees. The matched pattern
never appears in an answer. If several entries share a pattern, the most
restrictive code wins (csam, then legal_order, then abuse).
The answer for a blocked name is NXDOMAIN, whatever the block mode of the
profile. opdns checks the block before any profile rule, so an allowlist
cannot override it. The query is logged like any other query of the
profile, with the reason code as the reason. The exception is csam.
CSAM entries
Section titled “CSAM entries”- A query blocked by a
csamentry is never logged. The PoP only adds it to the hourly counters of the profile. - Clients see no reference.
- Operators see the pattern on the admin page and in the admin API, and nowhere else. Audit entries carry its SHA-256 instead.
Report
Section titled “Report”The Report section of the page (GET /v1/admin/operator-blocks/report,
or opdns-cp admin operator block report) counts operator blocks per
reason code for a date range. It counts the entries added in the range,
removed by an operator in it, expired in it, and live at its end.
Download CSV (?format=csv, --csv) gives the same table for the
transparency report. You write the rest of the report by hand.
A PoP applies an entry when the entry names that PoP. It also applies an
entry that names the country of the PoP (ISO 3166-1 alpha-2, for example
FR). The answering PoP decides, not the location of the client. For
example, a French court order scoped to FR applies on the PoPs in
France, whoever queries them.
Source blocks
Section titled “Source blocks”Use source blocks for sources that abuse the service itself (amplification, floods, scanning). Keep them narrow and temporary. Block the smallest prefix that stops the abuse, for as long as the abuse continues.
| Field | Notes |
|---|---|
| Prefix or address | IPv4 no wider than /8, IPv6 no wider than /19. A single address blocks only that address |
| Action | refuse (the default), drop or ratelimit (below) |
| Rate | for ratelimit only: queries per second per client address, 1 to 10,000 (default 5) |
| Reason | ticket id and cause, 1 to 200 characters. It is published to the PoPs, never to clients |
| PoPs, jurisdictions | as for operator blocks |
| Expires | 7 days by default, at most 90 days ahead. To extend an entry, add it again |
What a listed source gets:
| Action | Plain DNS (UDP, TCP) | DNS-over-TLS, HTTPS, HTTP/3, QUIC |
|---|---|---|
refuse |
REFUSED with EDE 18 (Prohibited), without recursion |
the connection is closed after the TLS handshake, without an answer |
drop |
no answer at all | the connection is closed after the TLS handshake |
ratelimit |
served normally up to the rate per client address (an IPv6 /64 counts as one), the rest dropped | served, with the same per-query limit |
Use drop for floods, where even a REFUSED feeds the attack. Use
ratelimit for a heavy but legitimate source. No query record is written
for a refused, dropped or over-the-rate query, identified or not. PoP
metrics count these queries by reason and action
(opdns_edge_source_blocked_total{transport,reason,action}). A PoP that is
older than the actions treats every entry as refuse.