Product Documentation

dns action

Sep 12, 2016

The following operations can be performed on "dns action":

add | rm | set | unset | show

add dns action

Add a dns action.

Synopsys

add dns action <actionName> <actionType> [-IPAddress <ip_addr|ipv6_addr> ... | -viewName <string> | -preferredLocList <string> ...] [-TTL <secs>] [-dnsProfileName <string>]

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 <actionName> <actionType> (-IPAddress <ip_addr|ipv6_addr> ... | -viewName <string> | -preferredLocList <string> ...) [-TTL <secs>] 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 

rm dns action

Removes a dns Action.

Synopsys

rm dns action <actionName>

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.

Synopsys

set dns action <actionName> [-IPAddress <ip_addr|ipv6_addr> ...] [-TTL <secs>] [-viewName <string>] [-preferredLocList <string> ...] [-dnsProfileName <string>]

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 <actionName> [-IPAddress <ip_addr|ipv6_addr> ...] [-TTL <secs>] [-viewName <string>] [-preferredLocList <string> ...] 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

unset dns action

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

Synopsys

unset dns action <actionName> [-TTL] [-dnsProfileName]

show dns action

Used to display the action-related information.

Synopsys

show dns action [<actionName>]

Arguments

actionName

Name of the dns action.

Outputs

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

devno

count

stateflag

Example

show dns action <Action-Name> show dns action action1 show dns action