Command Line Interface

4-296

4

show dns cache

This command displays entries in the DNS cache.
Command Mode
Privileged Exec
Example

clear dns cache

This command clears all entries in the DNS cache.
Command Mode
Privileged Exec
Example
Console#show dns cache
NO FLAG TYPE DOMAIN TTL IP
0 4 Address www.times.com 198 199.239.136.200
1 4 Address a1116.x.akamai.net 19 61.213.189.120
2 4 Address a1116.x.akamai.net 19 61.213.189.104
3 4 CNAME graphics8.nytimes.com 19 POINTER TO:2
4 4 CNAME graphics478.nytimes.com.edgesui 19 POINTER TO:2
Console#
Table 4-93 show dns cache - display description
Field Description
NO The entry number for each resource record.
FLAG The flag is always “4” indicating a cache entry and therefore unreliable.
TYPE This field includes ADDRESS which specifies the host address for the owner, and
CNAME which specifies an alias.
IP The IP address associated with this record.
TTL The time to live reported by the name server.
DOMAIN The domain name associated with this record.
Console#clear dns cache
Console#show dns cache
NO FLAG TYPE IP TTL DOMAIN
Console#