---
title: "set rpz_recursive_only"
canonical: "https://docs.infoblox.com/space/nios86/35821661/set%20rpz_recursive_only"
format: markdown
---
Use the `set rpz_recursive_only <``view_name``>`  `[<``zone_name``>]` command to use NIOS RPZ zones instead of local RPZ zones to <span style="color: #333333">block records with private IP addresses from being queried by external users. This command is available only on the Gird Master. </span>

<span style="color: #333333">If you do not specify an RPZ zone name after the DNS view name, all RPZ zones that belong to the specified DNS view are used to block records. If you specify an RPZ zone name, only that zone is used to block records.</span>

> ⚠️ <span style="color: #333333">Restart the DNS service on the member after running the command.</span>

# Syntax

`set rpz_recursive_only <view_name> [<zone_name>] <none | yes | no> `

| **Argument** | **Description** |
| --- | --- |
| view_name | DNS view to which the RPZ zones belong. |
| zone_name | NIOS zone name that must be used to block records with <span style="color: #333333">private IP addresses</span>. If you do not specify an RPZ zone, all zones that belong to the DNS view are considered. |
| none | Uses the existing setting for the command. For example, if the `set rpz_recursive_only view_name` command was set to `yes`, specifying `none` will consider the command enabled because the earlier setting was set to `yes`. |
| yes | Enables the command. |
| no | Disables the command. |

# Example

`Infoblox > set rpz_recursive_only default rpz1.com yes`  
`Restart the DNS service in order for changes to take effect.`