Cisco Cisco Packet Data Interworking Function (PDIF)
DNS Client Configuration Mode Commands
cache ttl ▀
Command Line Interface Reference, StarOS Release 17 ▄
3569
cache ttl
Configures the DNS cache time to live (TTL) for positive and negative responses.
Product
MME
SCM
SGSN
Privilege
Security Administrator, Administrator
Mode
Exec > Global Configuration > Context Configuration > DNS Client Configuration
configure > context context_name > dns-client client_name
Entering the above command sequence results in the following prompt:
[context_name]host_name(config-dns-client)#
Syntax
cache ttl { negative | positive } seconds
default cache ttl { negative | positive }
no cache [ ttl { negative | positive } ]
no
Disables any or all configured DNS cache parameters.
default
Sets the DNS cache time to live for positive and negative responses to the default setting.
{ negative | positive } seconds
negative
seconds
: Specifies the time to live for negative responses as an integer from 60 through 86400.
Default: 60.
positive
seconds
: Specifies the time to live for positive responses. as an integer from 60 through 86400.
Default: 86400 (1 day).
Usage
Use this command to adjust the DNS cache time to live.
Example
The following commands set the TTL DNS cache to
90
seconds for negative responses and
43200
seconds
for positive responses:
cache ttl negative 90
cache ttl positive 43200