---
title: "Enabling Recursion for RPZs"
canonical: "https://docs.infoblox.com/space/nios85/35418484/Enabling%20Recursion%20for%20RPZs"
format: markdown
---
For RPZ rules to function properly, you must enable DNS recursion. You can enable DNS recursion at the Grid, member, or DNS view level. To enable recursion:

- For the Grid or member, see *<span style="color: #0000ff">[Enabling](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35448674)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35448674)*<span style="color: #0000ff">[Recursive](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35448674)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35448674)*<span style="color: #0000ff">[Queries](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35448674)</span>*.
- For a DNS view, see *<span style="color: #0000ff">[Managing](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)*<span style="color: #0000ff">[Recursive](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)*<span style="color: #0000ff">[DNS](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)*<span style="color: #0000ff">[Views](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35447986/Configuration+Example+Configuring+a+DNS+View#ConfigurationExample:ConfiguringaDNSView-bookmark1706)</span>**.*

# > Macro (anchor)

> Macro (anchor)

Configuring RPZs for All Recursive Servers

When you configure a local or FireEye integrated RPZ, you must define an internal primary name server. The primary name server can be either recursive or non-recursive, depending on its usage. When you configure an RPZ feed, you must define an external primary name server. You can associate a name server or a name server group with the local RPZ, RPZ feed, or FireEye RPZ. You can also configure RPZs and RPZ feeds for all recursive servers in the Grid.  
A local RPZ can have one or more secondary name servers associated with it. For an RPZ feed, you must create an external primary name server.  
To configure a local RPZ, or RPZ feed, or FireEye RPZ for all recursive servers, complete the following:

1. From the **Data** **Management** tab, select the **DNS** tab -> **Response** **Policy** **Zones** tab, and then click the *Add* icon.
2. Enter the *Response* *Policy* *Zone* details and click **Next** to associate an RPZ with at least one name server. For information about creating a local RPZ, see *<span style="color: #0000ff">[Configuring](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)*<span style="color: #0000ff">[Local](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)*<span style="color: #0000ff">[RPZs](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*. For information about creating an RPZ feed, see *<span style="color: #0000ff">[Configuring](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)*<span style="color: #0000ff">[Local](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)*<span style="color: #0000ff">[RPZs](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743)</span>*[.](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35914743) For information about creating a FireEye integrated RPZ, see *<span style="color: #0000ff">[Configuring](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)*<span style="color: #0000ff">[FireEye](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)</span>*[ ](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)*<span style="color: #0000ff">[RPZs](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)</span>*[.](https://infoblox-docs.atlassian.net/wiki/spaces/nios85/pages/35417601/About+FireEye+Integrated+RPZs#AboutFireEyeIntegratedRPZs-bookmark3303)
3. Select **All** **Recursive** **Name** **Servers** from the list to add all the recursive name servers in the Grid as the secondary name servers for the corresponding zone.

> Macro (legacy-content)

# > Macro (anchor)

> Macro (anchor)

Enabling and Disabling RPZ Query Name Recursion

In previous NIOS releases, RPZ query name recursion was enabled by default. The DNS recursive name server performed RPZ recursive lookups for the fully qualified domain name that was part of an RPZ. Starting with NIOS 7.1.0, RPZ query name recursion is disabled by default. When RPZ query name recursion is disabled, the DNS recursive name server sends responses for the domains being queried, without forwarding queries to the authoritative name servers. This can speed up recursive RPZ lookups by eliminating unnecessary recursions for domains that are known to be malicious, possibly caused by internal DDoS attacks on the recursive server.  
You can enable RPZ query name recursion by selecting the **Enable** **RPZ** **query** **name** **recursion** **(qname-wait-recurse)** checkbox. When you select this checkbox, the appliance performs RPZ query name recursions. You can configure this at the Grid, member, and DNS view levels.

> ⚠️ **Note**
> ⚠️ 
> ⚠️ RPZ query name recursion is disabled by default. The **Enable****RPZ****query****name****recursion****(qname-wait-recurse)** checkbox is deselected for all new installations and upgrades. You can select this checkbox to enable RPZ query name recursion.

To enable or disable RPZ query name recursion:

1. From the **Data** **Management** tab, select the **DNS** tab, and then click **Grid** **DNS** **Properties** from the Toolbar.   
or  
From the **Data** **Management** tab, select the **DNS** tab -> **Members** tab -> *Grid_member* checkbox, and then click the Edit icon.  
or  
From the **Data** **Management** tab, select the **DNS** tab -> **Zones** tab -> *dns_view* checkbox, and then click the Edit icon.
2. In the *Grid* *DNS* *Properties*, *Member* *DNS* *Properties,* or *DNS* *View* editor, click the **General** tab -> **Advanced** tab and complete the following.

> Macro (legacy-content)

3. Save the configuration and click **Restart** if it appears at the top of the screen.

Following are sample configuration details in the named.conf file when the **Enable** **RPZ** **query** **name** **recursion** **(qname-wait-recurse)** checkbox is deselected:

`response-policy {`

`   zone "local.com" policy Given;# priority 0 `

`   zone "rpz.net" policy Given;# priority 1 `

`   zone "example.com" policy Given;# priority 2`  
`     } qname-wait-recurse no ; `

`     dnssec-enable yes; `

`     dnssec-validation yes; `

`     dnssec-accept-expired no;`

`    filter-aaaa-on-v4 no; `

`     zone "." in {`  
`         type hint;`  
`         file "named.cache._default";`  
`   };`