Home > Configuration > Domain Name Service > setdnspolicy_action

setdnspolicy_action

Use this method to set name of the DNS action to perform when the rule evaluates to TRUE. The built in actions function as follows:
* dns_default_act_Drop. Drop the DNS request.
* dns_default_act_Cachebypass. Bypass the DNS cache and forward the request to the name server.
You can create custom actions by using the add dns action method in the CLI or the DNS > Actions > Create DNS Action dialog box in the Citrix ADC configuration utility.

Syntax



Parameters

name

Name of the DNS policy.
This is mandatory parameter.

actionname

Name of the DNS action to perform when the rule evaluates to TRUE. The built in actions function as follows: * dns_default_act_Drop. Drop the DNS request. * dns_default_act_Cachebypass. Bypass the DNS cache and forward the request to the name server. You can create custom actions by using the add dns action method in the CLI or the DNS > Actions > Create DNS Action dialog box in the Citrix ADC configuration utility.

Return Value

Returns simpleResult

See Also