Why teams build a DNS firewall from MISP with RPZ
A security team that already holds domain indicators in MISP can turn them into enforcement at the resolver, so that clients querying malicious names receive a policy answer instead of the real record. The mechanism is Response Policy Zones (RPZ), a method in which a recursive resolver such as BIND or Unbound loads a zone whose records describe policy actions for specific domain names. The MISP features page lists RPZ among the export formats, alongside Suricata, Snort, Zeek, STIX and CSV, so the indicators you already curate can feed the resolver without a separate spreadsheet or manual list. Plan the deployment against MISP 2.5, which the project recommends for new instances. Confirm the RPZ export behavior and output options against your exact MISP build, because the export is a platform feature you should test rather than assume.
A DNS layer is most useful when you want a broad, cheap, early block across every device that uses your resolvers, including hosts that a firewall or proxy never sees. It stops name resolution before a connection is attempted, which covers command-and-control callbacks, phishing domains and newly registered lookalikes that your event data already flags. It is weaker where traffic bypasses your resolvers, where clients use DNS over HTTPS to external services, or where you need to see the full URL or enforce a path-level rule. For those cases, firewalls and web proxies remain the right enforcement points, and the DNS layer complements them. Decide early which population of clients must use your resolvers, because that decision determines how much protection the RPZ feed actually delivers.
Before you commit, ask who owns the resolver, who approves a domain being blocked, and how a wrongly blocked business application is reported and reversed. Those answers shape the feed design more than the export format does. Confirm with your resolver vendor or project documentation which RPZ policy actions and trigger types your version supports, and confirm your own resolver fleet's upgrade and change-control process, since policy zones are loaded and reloaded on a schedule. A DNS firewall built this way is only as trustworthy as the indicators feeding it, so treat it as a production control with an owner, not a side project.
How MISP indicators reach the resolver
The path starts with an analyst or a feed adding an event to MISP, where the RPZ export turns selected domain attributes into a policy zone. The zone is then transferred or fetched by the resolver during each refresh interval, and client queries for listed names return a policy answer instead of resolving. Blocked lookups should be logged to a sensor or SIEM. The trust boundary sits between the MISP instance and the resolver, so check what crosses it, who can publish, and how a bad entry is removed.
Indicator flow from MISP export to resolver policy and logging.
RPZ policy values and filter choices and when each fits
This table compares the response actions a resolver can apply to a blocked domain and the MISP-side filters that decide which domains reach the policy zone. Read each row as a choice you make twice: once in the resolver's policy and once in the export query. Confirm the exact action names and zone syntax against your resolver's documentation before you rely on them.
| Setting | What it does | When it fits | Confirm before relying on it |
|---|---|---|---|
| NXDOMAIN action | Returns a non-existent domain answer for the blocked name, so clients see the name as not existing. | Broad blocking of known-malicious domains where you want clients to fail fast and no extra answer is needed. | How your resolver handles subdomains of a blocked name and whether it logs the match. |
| NODATA action | Returns a valid response with no records of the requested type, so the name exists but has no answer for that type. | Blocking one record type, such as only address lookups, while leaving the name resolvable for other uses. | Client behavior on NODATA responses in your application and browser mix. |
| Redirect or local data action | Answers the blocked name with a chosen address or record, often a sinkhole that your team controls. | When you want a sinkhole for telemetry, a block page, or to identify infected hosts by the connections they attempt. | The sinkhole address, the TLS behavior of clients that reach it, and who monitors the sinkhole logs. |
| Pass-through action | Lets the query resolve normally while still recording a match in the policy zone. | Monitoring and tuning phases, when you want to measure hits before any blocking takes effect. | Whether your resolver logs pass-through matches and how long those logs are kept. |
| Tag filter | Includes only attributes carrying chosen MISP tags in the zone export. | Separating high-confidence campaigns from broad or experimental indicators, so each tag can carry its own policy. | Tag names are local to your MISP instance, so confirm the tags your sharing partners use. |
| to_ids flag | Includes only attributes marked as suitable for detection. | Keeping analyst-only context out of the blocking zone. Attributes without the flag are often context, not blocking material. | The flag reflects the publisher's judgment, so check it against your own risk tolerance. |
| Distribution and sharing filters | Limits which events and attributes your instance exports, based on distribution levels and sharing groups. | Honoring partner restrictions so that indicators shared under tighter terms do not leave your environment in a policy zone. | Whether your export job runs as a user with the right visibility into each sharing group. |
| Decay and expiry | Removes or disables indicators after a set period or when their score drops below a threshold. | Domains that were malicious for a short campaign and should stop blocking after the campaign ends. | The decay models available in your MISP version and how decay interacts with your refresh schedule. |
| Warninglist enforcement | Excludes values on known-benign lists such as popular domains, cloud provider names or resolver addresses. | Almost always, because a false positive on a common domain can break business services. | The warninglists enabled on your instance and how they apply to the RPZ export. |
How the RPZ export and resolver refresh interact
A MISP change does nothing for clients until the resolver loads the new zone. The RPZ export is only a file or zone that MISP publishes. BIND (named) or Unbound must fetch or receive that data, load it into memory, and apply it to queries. Between a MISP publish and the resolver's next load, a newly listed domain keeps resolving and a removed one keeps being blocked. Plan the pipeline as a chain of three steps (export, transfer, reload) and assign an owner to each, so a stale policy is found quickly rather than discovered during an incident.
Zone size and refresh frequency shape resolver load in two ways. A larger policy zone takes longer to transfer, parse and load, and it occupies more memory on every resolver that subscribes to it. Frequent full transfers add cost on both the MISP side and the resolver side, while infrequent ones leave the policy stale for longer. Before choosing an interval, ask the operations team to measure load time and memory use on a staging resolver with a realistic copy of your export, and confirm how your BIND or Unbound version handles incremental updates. The refresh schedule is a design choice to set with the operations team against your tolerance for stale policy, not a figure this page can supply.
Treat the schedule as a documented control. Record the export interval, the transfer interval, the reload method and the maximum acceptable lag between a MISP decision and enforcement, and test that lag by publishing a known test domain and timing when it is blocked. Any change to the export filters, such as tag or decay rules, should be followed by a reload check, since a correct export that is never loaded has no effect on protection.
Setting up the RPZ export and resolver pipeline
This sequence takes a MISP instance from version check to a tested, scheduled RPZ zone served by a resolver, with logging in place so every blocked lookup can be traced back to its source event.
Confirm MISP version and RPZ export availability
Check the running MISP version against the project's download page, which recommends MISP 2.5 for new deployments and lists 2.4 as end of life with security fixes only. Confirm that the RPZ export format is present in your instance's export options and that your MISP release notes do not flag changes affecting it. Also confirm whether your instance uses the MySQL or MariaDB database or the newer PostgreSQL option, since that affects upgrade planning. The step is done when you have a written version record and a successful test export of the RPZ format from a sample event.
Define the tag and distribution scope
Decide which events and attributes may enter the zone before any export is configured. Select the tags that mark domains as confirmed malicious, such as a specific taxonomy classification your team already applies, and exclude events whose distribution level would publish intelligence beyond the audience that should receive it. Document the decay settings and the attribute types that qualify, typically domain and hostname values. The step is done when the scope is written down, reviewed by the team that owns the resolver, and matches a sample of events you can inspect by hand.
Configure the RPZ export
Create the export filter that applies your tag, distribution and type rules, then set the output so it produces a zone file in RPZ form with a policy action for each entry, such as NXDOMAIN or a redirect target, as your resolver design requires. Confirm how the export handles apex and subdomain matching, since this changes how much traffic a single entry blocks. The step is done when a manual export runs to completion and the output file contains only the entries your scope selected.
Validate the zone syntax on the export host
Before any resolver reads the file, run a zone syntax check with the BIND tooling for your resolver version, using the zone file name and the RPZ zone origin your configuration expects. Fix any malformed records at the export filter rather than editing the output by hand, so the next export does not reintroduce the error. The step is done when the checker reports no errors and a record count matches the number of entries the export reported.
Test the zone on a staging resolver
Load the validated zone into a staging instance of BIND or Unbound configured as an RPZ consumer, following your resolver's documentation for the policy zone directive. Query a known test domain that is in the zone and confirm the answer matches the policy you set, then query a domain that is out of scope and confirm it resolves normally. Also check a domain from your warninglist of popular or internal names to confirm it is not blocked. The step is done when both expected and unexpected answers are verified and recorded.
Set the refresh schedule
Schedule the export and the zone transfer or reload so the resolver receives updates at an interval your team can justify against the rate at which your MISP feeds change and the tolerance your operations group has for stale blocks. Ask your MISP administrator to confirm how the export job is scheduled and whether it runs as a background task, and confirm your resolver's method for picking up a changed zone without a full restart. The step is done when a test update propagates to the staging resolver within the interval you chose and the previous version is retained for rollback.
Enable logging and sightings feedback
Turn on query and policy logging on the resolver so every answer changed by the zone is recorded with the domain, the matched policy and the time. Route those logs to your SIEM, and build a simple match report that you can compare against MISP event identifiers for false positive review. Where your workflow supports it, return confirmed hits to MISP as sightings. The step is done when a test block appears in the log, can be traced back to its source event in MISP, and the log retention period is confirmed with the team that owns logging.
Handling false positives before they break users
A DNS firewall that blocks the wrong domain causes outages faster than a missed indicator causes harm. The controls below work together: they stop obvious false positives at publish time, keep stale data from accumulating, and give analysts a fast way to correct mistakes and undo a bad zone.
Warninglist enforcement on popular domains
Apply MISP warninglists before any domain reaches the RPZ, so that large public services, CDNs, update hosts and common resolvers are dropped from the policy zone automatically. Check that the warninglists you enable match the domains your users rely on, because a generic list will not know your SaaS vendors. Confirm which warninglist version your instance uses and how the export step treats a match: some matches should exclude a value, others should only raise a warning for an analyst to review.
Allowlisting internal and critical domains
Maintain an explicit allowlist for your own domains, identity providers, payroll, banking and clinical systems, and any domain that a business process cannot function without. Enforce it at the export layer so that no MISP event, however it is tagged, can publish a listed name into the zone. Review the allowlist with application owners, since a single missing entry for a sign-in provider can block an entire department.
Decay of stale indicators
Let indicators expire from the policy zone when they stop being refreshed, so that a domain used by a campaign two years ago does not keep blocking a site that now belongs to someone else. Decide the decay window per source and per indicator type, and record it in the export configuration. Check that expired values are removed on the next zone build, not only hidden in MISP, because the resolver only acts on what it has loaded.
Review path for analyst corrections
Give analysts a defined route to remove or downgrade a domain once a false positive is confirmed. The route should record who made the change, why, and whether the value was disabled in MISP, excluded by tag, or added to an allowlist. Without this step, the same domain returns on the next sync from a partner feed, and users see the problem again.
Rollback of a bad zone
Keep the previous published zone file so the resolver can be pointed back to it quickly if a new build breaks access. Test the rollback in a staging resolver before you depend on it, and document who has authority to trigger it. The rollback procedure is part of the design, not an emergency improvisation, because a zone that suppresses a major domain can affect many users at once.
Sightings and log feedback to MISP
Record resolver hits on policy-matched domains and return them to MISP as sightings, so that a domain that users query heavily shows up as a candidate for review rather than a silent block. Sightings also show which indicators are active in your environment, which informs decay decisions. Confirm how your resolver logs RPZ actions and whether the log volume and retention meet your review needs.
MISP featuresBIND, Unbound or another RPZ-capable resolver
BIND is the reference point most teams start from when they discuss RPZ. Policy zones are attached to the resolver with the response-policy statement inside options or view, and each policy zone is declared as a zone of type slave or master that is fed from a file or a zone transfer. Confirm in the BIND documentation for your release which policy triggers (QNAME, client IP, NSDNAME, NSIP) and which policy actions (NXDOMAIN, NODATA, PASSTHRU, DROP, local data redirect) it supports, because the export from MISP has to match those choices.
- Zone loading: Decide whether the policy zone is loaded from a file written by an export job or transferred from a primary that you control. Zone transfers are easier to keep current but need transfer ACLs and TSIG keys.
- Reload behavior: Confirm whether a zone change is picked up by a zone reload command or by a transfer refresh, and measure how long a large policy zone takes to load on your hardware.
- Policy hit logging: Check which
querylogandloggingcategories record RPZ rewrites, and whether the log includes the policy zone name and the matched rule. - Operational tooling: Plan how you will check the loaded zone serial, validate the zone file before reload and roll back to the previous zone.
- Views: If you run views, confirm that each view attaches only the policy zones intended for that client population.
Before go-live, ask the resolver vendor or project which release of BIND your team will run and confirm each of these behaviors against that release's documentation.
Unbound is often chosen for recursive resolvers that prioritize a small configuration surface. RPZ is configured inside the server section with an rpz: block that names the policy zone, its source and its actions. Confirm in the Unbound documentation for your version whether the policy zone is read from a local file, fetched by zone transfer, or both, and which RPZ actions and triggers are supported, since the answer determines which MISP export format you can use.
- Zone source: Verify whether your version can refresh the policy zone from a primary by transfer, or whether a file must be replaced and the process signaled to reread it.
- Reload behavior: Confirm which control command reloads policy data without restarting the resolver, and whether a reload briefly interrupts answers on a busy resolver.
- Policy hit logging: Check whether RPZ hits are written to the query log or only to the verbosity log, and at what verbosity level, since higher verbosity costs disk and CPU.
- Fallback behavior: Test what happens when the policy file is missing or malformed at startup. Some setups fail to start, and others run with no policy, which can leave blocking silently off.
- Action coverage: Test each policy action you plan to use, including NXDOMAIN and redirect, against a known test domain before you rely on it.
Because Unbound's RPZ handling has changed between releases, confirm the exact behavior with the project documentation for the version you deploy and record that version in your build notes.
Teams often run an RPZ-capable resolver that is not BIND or Unbound, usually because it is already the standard in their DNS estate, sits inside a managed appliance or is part of a secure recursive service. These products differ in RPZ coverage, so the MISP export is only useful once the target has been checked. Treat the policy zone as a contract between MISP and that resolver, and write down what the resolver accepts before you build the pipeline.
- Support level: Confirm which RPZ triggers and actions the product implements, and whether it supports policy zones fed by zone transfer as well as by file.
- Zone loading: Find out how the product validates a policy zone, whether it accepts a partial update or requires a full reload, and how long a large zone takes to apply.
- Logging: Confirm that policy hits reach the log or SIEM with the policy zone and matched name, because a block without a record is hard to investigate.
- Tooling: Check whether the product offers an API or command line for reload, status and rollback, and whether those actions can be scripted.
- Vendor statements: Ask for written confirmation of RPZ behavior for the specific model and release you will run, not only the product family.
Before you commit to a product, ask the vendor for the exact RPZ feature matrix for your release and test it with a sample export from your own MISP instance.
Security and operational considerations for a DNS policy layer
A DNS policy layer built from MISP inherits risks from three places: the MISP instance that produces the feed, the resolvers that enforce it, and the users and services that depend on those resolvers. The cards below cover the controls and checks that connect them, so a feed that is correct on paper also holds up in production.
Scope the MISP API key and export access
The RPZ export is only as protected as the credentials that can pull it. Create a dedicated automation user with read access to the events and tags the zone needs, rather than reusing an analyst's key. Confirm who can generate or rotate keys, how keys are stored on the resolver side, and whether the export URL or its output can be fetched by hosts outside the resolver fleet. Treat a leaked key as a way to learn which domains your organization is investigating.
MISP featuresClose resolver bypass paths
A DNS policy only works if clients use the policy-enforcing resolver. Endpoints that use DNS over HTTPS, DNS over TLS, hard-coded public resolvers or direct queries to the internet can skip the RPZ entirely. Inventory outbound port 53 and 853 traffic, block direct resolver access at the firewall, and decide how browsers and managed endpoints are configured. Confirm which of these paths your current network controls can actually see and enforce.
Assess the blast radius of a wrong block
A false positive in a DNS zone can break more than one website, because the same domain may serve authentication, software updates, APIs or email for internal systems. Before enabling enforcement, list which internal services resolve through each candidate domain, and check shared hosting, CDN and cloud provider domains against your warning lists. Decide in advance whether a block returns NXDOMAIN, a sinkhole address or a passthrough action, since each one fails differently for clients.
Protect query logs and user privacy
Resolver query logs reveal which sites each employee or system contacted, and blocked-query logs can expose investigations that are not public. Define the retention period, who can read the logs, and whether logs are pseudonymized or tied to user identity. Check your privacy notices and works council or employee representation requirements where they apply. Confirm the log destination is covered by the same access controls as the MISP instance.
Keep MISP patched through advisories
The feed generator is an internet-facing application that holds sensitive intelligence, so it needs the same patch discipline as any other service. MISP 2.4 is end of life with security fixes only, and the project recommends MISP 2.5 for new deployments. Subscribe to the project's security advisories, define a patch window, and test upgrades on a staging instance that exports the same RPZ before production. Check the MISP upgrades topic for changes inside the 2.5 line that need planning.
MISP releasesConfirm license obligations for operations
MISP itself is licensed under the GNU AGPL version 3, so if you modify the MISP software and make it available to users over a network, the AGPL terms on that modified code apply. Taxonomy and galaxy data are licensed separately under CC0 1.0 Universal or the 2-clause BSD license, which is what the RPZ tagging and classification data depends on. Have legal review how you distribute the exported zone and any internal changes to the MISP code before rollout.
MISP repositoryQuestions teams ask before building an RPZ feed from MISP
What drives the cost of building an RPZ feed from MISP?
The main cost is the time of the people doing the work, so the size of the feed pipeline and the number of resolvers it serves matter most. Cost rises with the number of MISP sources you trust, the amount of tuning needed to separate malicious domains from legitimate ones, the number of resolver platforms (BIND, Unbound or others) that must load the zone, and the depth of testing before production. Some costs are one-time, such as design, the first export job and resolver validation. Others recur, such as feed review, MISP upkeep and resolver updates. Ask any provider for a quote that lists each phase, who performs it, what your team must supply, and which parts recur after go-live.
How long does it take to publish an RPZ zone from MISP?
Duration depends mainly on how mature your MISP instance is, how clean its intelligence is, and how quickly your resolver and change-control teams can test. A team with a running MISP instance, a clear policy for which tags and threat levels become blocks, and a lab resolver can move faster than one still installing MISP or agreeing on sharing rules. Resolver testing and the review of the first false positive reports usually take longer than the export itself. No fixed duration applies to every environment, so ask for a written timeline tied to the scope and to named milestones.
What does our internal team need to provide?
Your team needs to supply access and decisions that only your organization can make. This includes a running or planned MISP instance and an account with export rights, a list of resolvers and their versions, the DNS zones and internal domains that must never be blocked, and the change window for resolver reloads. You also need a named owner for false positive reports and someone who can approve policy changes such as tag filters, decay settings and the action taken for each block. Without these inputs the feed either blocks too much or is never trusted by the people who operate DNS.
Can our own team build and run the RPZ feed without a partner?
Yes, a capable DNS and MISP team can build the feed in-house, and that is often the right choice when the people and time already exist. The work involves MISP export configuration, zone generation, resolver policy design, validation and a scheduled refresh. Teams commonly underestimate the review of false positives, the resolver testing and the documentation that auditors and change boards ask for. A partner can be scoped for design, build and handover only, or for ongoing operation, and the written scope should state which party owns each task after go-live.
How are false positives handled after go-live?
Handle false positives through a documented intake path, a triage step and a rollback route. Give users or analysts a way to report a blocked domain, check the domain against allowlists and warninglists, confirm the MISP attribute and its sightings, then decide whether to remove the attribute in MISP, add an exception in the policy or reduce the decay score. Keep the change traceable so the same domain is not blocked again by the next export. Confirm with your resolver vendor how quickly a corrected zone can be loaded and whether a single domain can be overridden without a full reload.
What does an ongoing refresh and review cycle require?
An ongoing cycle needs a regular export schedule, a review of new and expiring indicators, resolver reload procedures and periodic tests of blocked and allowed domains. Plan a recurring owner for the feed, a review of MISP tags and decay rules as threat data changes, and checks that the zone still loads on every resolver version in use. Also schedule MISP upkeep, since the MISP 2.5 line has had releases and migrations that need planning. The refresh interval should match your risk tolerance and resolver change process, which you should document and confirm with your own team.
Which MISP version should we run for an RPZ feed?
MISP 2.5 is the version recommended for new deployments, and MISP 2.4 is end of life with security fixes only, so the project advises against installing new 2.4 instances. Current 2.5 point releases include MISP 2.5.50, released on 9 October 2026, and MISP 2.5.47, released on 17 September 2026, which introduced a new database migration system with PostgreSQL support. Confirm the exact version your team will run against the MISP releases page before you design the export, and plan upgrades as a separate task with a tested rollback.
Does the MISP license affect how we publish the feed?
MISP software is licensed under the GNU AGPL version 3, which governs the software you run, including modifications you make and offer to users over a network. The taxonomies and galaxy data bundled with MISP are licensed separately under CC0 1.0 Universal or the 2-clause BSD license. Publishing an RPZ zone generated from MISP data is a question about the data and sharing terms, so confirm with your legal team which sharing groups and distribution levels apply to each source before the zone is shared outside your organization.
How DeployOpen scopes and supports an RPZ DNS firewall
DeployOpen works from a written scope agreed before any build starts, because an RPZ DNS firewall touches four separate things that each need an owner: the MISP instance that holds the intelligence, the resolver that enforces the policy, the export job that turns MISP data into a zone, and the test plan that proves blocked domains are blocked and clean domains still resolve. The scope document names each of these, lists the MISP events, tags and decay settings that feed the zone, states which resolver software and version are in use (BIND, Unbound or another RPZ-capable resolver), and defines the handover deliverables. Ask for the scope to name the policy action used for blocked domains, the refresh interval, the warninglist and allowlist handling, and the false-positive process, because each of these changes the work.
Delivery happens inside your own infrastructure, on your cloud accounts, data centers or air-gapped network, so the MISP instance, resolvers, zone distribution and logs stay under your control. The scope should also say who operates each piece after handover and who signs off the test results. Many teams find the resolver side is where the most assumptions hide, so the written plan should record resolver placement, failover behavior and how a policy update reaches every resolver. Where your team wants help after go-live, DeployOpen offers optional retainers for upgrades and continuous testing, which are separate from the fixed build and are priced from their own written scope. DeployOpen does not publish a price list, so the quote follows from the scope you approve.

