CLI Reference Guide-R04

Table Of Contents
Chapter 29
| Domain Name Service Commands
– 861 –
clear dns cache This command clears all entries in the DNS cache.
Command Mode
Privileged Exec
Example
Console#clear dns cache
Console#show dns cache
No. Flag Type IP Address TTL Host
------- ------- ------- --------------- ------- --------
Console#
clear host This command deletes dynamic entries from the DNS table.
Syntax
clear host {name | *}
name - Name of the host. (Range: 1-127 characters)
* - Removes all entries.
Default Setting
None
Command Mode
Privileged Exec
Command Usage
Use the clear host command to clear dynamic entries, or the no ip host command
to clear static entries.
Example
This example clears all dynamic entries from the DNS table.
Console#clear host *
Console#
show dns This command displays the configuration of the DNS service.
Command Mode
Privileged Exec