ltm rule command DNS rpz policyΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

DNS::rpz_policy
       Returns the RPZ policy associated with the DNS cache.

SYNOPSIS
       DNS::rpz_policy

DESCRIPTION
       Returns the RPZ (Response Policy Zones) policy associated with the DNS cache.

       The possible return values are:
	   * "" (empty string) if RPZ is not configured.
	   * "NXDOMAIN" if RPZ is configured to return an NXDOMAIN response on a match.
	   * "WG " if RPZ is configured to return a Walled Garden redirect on a match.

       Syntax

	   DNS::rpz_policy

RETURN VALUE
       * "" (empty string) if RPZ is not configured.  * "NXDOMAIN" if RPZ is configured to return an NXDOMAIN
       response on a match.  * "WG " if RPZ is configured to return a Walled Garden redirect on a
       match.

VALID DURING
EXAMPLES
	when DNS_RESPONSE {
	     if { [DNS::origin] eq "RPZ"} {
		log local0. "[DNS::question name] resulted in an RPZ [DNS::rpz_policy]"
	     }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.6.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)