Chapter 23
| Domain Name Service Commands
– 528 –
Command Mode
Global Configuration
Example
This example maps an IPv6 address to a host name.
Console(config)#ipv6 host rd6 2001:0db8:1::12
Console(config)#end
Console#show hosts
No. Flag Type IP Address TTL Domain
---- ---- ------- -------------------- ----- -------------------------------
0 2 Address 192.168.1.55 rd5
1 2 Address 2001:DB8:1::12 rd6
Console#
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 Domain
------- ------- ------- --------------- ------- --------
Console#
clear host This command deletes dynamic entries from the DNS table.
Syntax
clear host {name | *}
name - Name of the host. (Range: 1-100 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.