Response Policy Zones (RPZ)
Response Policy Zones (RPZ) is a mechanism that lets a recursive resolver apply firewall-like policies to DNS lookups: blocking, redirecting, or rewriting responses based on rules distributed as ordinary DNS zone data.
In plain English
Threat-intelligence vendors publish lists of malicious domains. RPZ is how those lists get into a resolver: the list is packaged as a special DNS zone, the resolver subscribes to it, and any query that matches an entry is rewritten — usually to "this name does not exist" or to a sinkhole IP that displays a block page.
How it works
RPZ was invented by Paul Vixie at ISC and is described in a long-running internet draft rather than a finalised RFC, but it is implemented in BIND 9.10+, Unbound, Knot Resolver, and PowerDNS Recursor. A policy zone is a normal DNS zone whose record names encode triggers (example.com.rpz, *.example.com.rpz, 32.1.0.0.127.rpz-ip, ns.example.com.rpz-nsdname) and whose record data encodes actions: CNAME . for NXDOMAIN, CNAME *. for NODATA, CNAME rpz-passthru. for allow, or a synthetic A/AAAA for sinkholing. The resolver loads the policy zone via AXFR/IXFR, gets near-real-time updates via NOTIFY, and consults the policy at every lookup with very low overhead. Multiple zones can be layered for allowlists, blocklists, and category policies.
Related terms
- DNS — the protocol RPZ extends
- Recursive DNS — where RPZ is enforced
- NXDOMAIN — the most common RPZ action
- Protective DNS — RPZ is the engine behind it
- TTL — controls how fast a rule rolls out
- Authoritative DNS — RPZ zones are distributed via zone transfer
SecDNS perspective
SecDNS uses RPZ-style policy zones to ship threat feeds, customer allow/deny lists, and category filters to every resolver node — a new block propagates worldwide in seconds.