Home > Configuration > Domain Name Service > setdnspolicy_rule

setdnspolicy_rule

Use this method to set 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")

Syntax



Parameters

name

Name of 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")

Return Value

Returns simpleResult

See Also