set-dns-cache-prop

Syntax

tadm set-dns-cache-prop common_options --config=config_name (property_name=property_alue)+

Description

Use this command to set the Domain Name Server (DNS) cache properties.

Options

For information about common_options, run the help command.

--config|-c

Specify the name of the configuration to set the DNS cache properties.

Operands

property-name=property-value

Specify name=value pairs for one or more properties that you want to define. The name=value pairs should be separated by spaces.

You can set the following DNS cache properties:

enabled: Specifies whether the server should set DNS cache properties.
Values: true, false. Default: true.

max-age: Specifies the duration (in seconds) for which the entries must be kept in the cache.
Values: 1 to 31536000.

max-entries: Specifies the maximum number of DNS lookup results to write to the cache.
Values: 32 to 32768.

To reset a property to its default value, do not provide a property value.
For example, property-name=<empty_string>

Example

tadm set-dns-cache-prop --user=admin --host=admin.example.com 
--password-file=./admin.passwd --port=8989 
--no-prompt --config=www.example.org max-age=3848 
max-entries=45

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.