ADC CLI Commands

dns-action

The following operations can be performed on “dns-action”:

rm set add show unset

rm dns action

Removes a dns Action.

Synopsis

rm dns action

Arguments

actionName Name of the dns action.

Example

rm dns action action1

set dns action

Set a dns Action. Use this command to set the values for Ip address and TTL, If Ipaddress is given in set dns action command we will discard the previous set and will apply this new set of ipaddress given.

Synopsis

set dns action \[-IPAddress <ip\_addr|ipv6\_addr> ...] \[-TTL ] \[-viewName ] \[-preferredLocList ...] \[-dnsProfileName ]

Arguments

actionName Name of the dns action.

IPAddress List of IP address to be returned in case of rewrite_response actiontype. They can be of IPV4 or IPV6 type. In case of set command We will remove all the IP address previously present in the action and will add new once given in set dns action command.

TTL Time to live, in seconds. Default value: 3600 Maximum value: 2147483647

viewName The view name that must be used for the given action.

preferredLocList The location list in priority order used for the given action.

dnsProfileName Name of the DNS profile to be associated with the transaction for which the action is chosen

Example

set dns action \[-IPAddress <ip\_addr|ipv6\_addr> ...] \[-TTL ] \[-viewName ] \[-preferredLocList ...] set dns action action1 -ipAddress 10.102.27.153 10.102.27.154 33::33 44::44 -TTL 4000 set dns action action1 -viewName dnsview2 set dns action action1 -preferredLocList india.10.102.81.175.80

add dns action

Add a dns action.

Synopsis

add dns action \[-IPAddress <ip\_addr|ipv6\_addr> ... | -viewName | -preferredLocList ...] \[-TTL ] \[-dnsProfileName ]

Arguments

actionName Name of the dns action.

actionType The type of DNS action that is being configured.

Possible values: ViewName, GslbPrefLoc, noop, Drop, Cache_Bypass, Rewrite_Response

IPAddress List of IP address to be returned in case of rewrite_response actiontype. They can be of IPV4 or IPV6 type. In case of set command We will remove all the IP address previously present in the action and will add new once given in set dns action command.

TTL Time to live, in seconds. Default value: 3600 Maximum value: 2147483647

viewName The view name that must be used for the given action.

preferredLocList The location list in priority order used for the given action.

dnsProfileName Name of the DNS profile to be associated with the transaction for which the action is chosen

Example

add dns action \(-IPAddress <ip\_addr|ipv6\_addr> ... | -viewName | -preferredLocList ...) \[-TTL ] add dns action action1 Rewrite_Response -ipAddress 10.102.27.153 10.102.27.154 33::33 44::44 -TTL 4000 add dns action action1 GslbPrefLoc -preferredLocList india.10.102.81.175.80 us.10.102.81.176.80 add dns action action1 ViewName -viewName dnsview1

show dns action

Used to display the action-related information.

Synopsis

show dns action []

Arguments

actionName Name of the dns action.

Output

actionType The type of DNS action that is being configured.

TTL Time to live, in seconds.

IPAddress List of IP address to be returned in case of rewrite_response actiontype. They can be of IPV4 or IPV6 type. In case of set command We will remove all the IP address previously present in the action and will add new once given in set dns action command.

viewName The view name that must be used for the given action.

preferredLocList The location list in priority order used for the given action.

drop The dns packet must be dropped.

cacheBypass By pass dns cache for this.

dnsProfileName Name of the DNS profile to be associated with the transaction for which the action is chosen

builtin Flag to determine whether DNS action is default or not

feature The feature to be checked while applying this config

devno count stateflag

Example

show dns action show dns action action1 show dns action

unset dns action

Use this command to remove dns action settings.Refer to the set dns action command for meanings of the arguments.

Synopsis

unset dns action [-TTL] [-dnsProfileName]

dns-action