C613-50170-01 Rev B
Command Reference for x510 Series
820
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
OMAIN
N
AME
S
ERVICE
(DNS) C
OMMANDS
IP
DNS
FORWARDING
CACHE
ip dns forwarding cache
Overview
Use this command to set the DNS Relay name resolver cache size and cache entry
lifetime period. The DNS Relay name resolver cache stores the mappings between
domain names and IP addresses.
Use the
no
variant of this command to set the default DNS Relay name resolver
cache size and cache entry lifetime period.
Note that the lifetime period of the cache entry can be overwritten by the time-out
period of the DNS reply from the DNS server if the time-out period of the DNS reply
from the DNS server is smaller than the configured time-out period. The time-out
period of the cache entry will only be used when the time-out period of the DNS
reply from the DNS server is bigger than the time-out period configured on the
device.
Syntax
ip dns forwarding cache [size <
0-1000
>] [timeout <
60-3600
>]
no ip dns forwarding cache [size|timeout]
Default
The default cache size is 0 (no entries) and the default lifetime is 1800 seconds.
Mode
Global Configuration
Examples
To set the cache size to
10
entries and the lifetime to
500
seconds, use the
commands:
awplus#
configure terminal
awplus(config)#
ip dns forwarding cache size 10 time 500
To set the cache size to the default, use the commands:
awplus#
configure terminal
awplus(config)#
no ip dns forwarding cache size
Related
Commands
Parameter
Description
<
0-1000
>
Number of entries in the DNS Relay name resolver cache.
<
60-3600
>
Timeout value in seconds.