SecDNS

Response Policy Zones (RPZ)

RPZ is a DNS firewall mechanism that lets recursive resolvers rewrite or block responses based on policy zones distributed like ordinary DNS zone transfers.

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.

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.

Frequently asked questions

Is RPZ an RFC?

Not yet. It started as an ISC draft (the Vixie RPZ specification) but is implemented by every major recursive resolver including BIND, Unbound, Knot, and PowerDNS.

What is the difference between a blocklist and an RPZ feed?

A blocklist is just a list of names. An RPZ feed is a packaged DNS zone with explicit actions per name (NXDOMAIN, NODATA, sinkhole, passthru) and incremental transfer support.