adddnspolicy

Use this method to creates a DNS policy.

Syntax



Parameters

name

Name for the DNS policy.
This is mandatory parameter.

rule

Expression against which DNS traffic is evaluated. Note: * On the method line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. * If the expression itself includes double quotation marks, you must escape the quotations by using the character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. Example: CLIENT.UDP.DNS.DOMAIN.EQ("domainname").
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.

logaction

Name of the messagelog action to use for requests that match this policy.

Return Value

Returns simpleResult

See Also