Cisco Cisco IOS Software Release 12.4(4)T

Page de 22
 
VRF-Aware DNS
  show hosts
19
Cisco IOS Release 12.4(4)T
show hosts
To display the default domain name, the style of name lookup service, a list of name server hosts, the 
cached list of hostnames and addresses, and the cached list of hostnames and addresses specific to a 
particular Virtual Private Network (VPN), use the show hosts command in EXEC mode.
show hosts [vrf vrf-name] {all | hostname} [summary
Syntax Description
Command Modes
EXEC
Command History
Usage Guidelines
If you specify the show hosts command without the optional keywords, only the entries in the global 
name cache will be displayed. 
Examples
The following is sample output from the show hosts command:
Router# show hosts
Default domain is CISCO.COM
Name/address lookup uses domain service
Name servers are 255.255.255.255
Host
Flag
Age
Type
Address(es)
SLAG.CISCO.COM
(temp, OK)
1
IP
172.20.4.10
CHAR.CISCO.COM
(temp, OK)
8
IP
192.168.7.50
CHAOS.CISCO.COM
(temp, OK)
8
IP
172.20.1.115
DIRT.CISCO.COM
(temp, EX)
8
IP
172.20.1.111
DUSTBIN.CISCO.COM (temp, EX)
0
IP
172.20.1.27
DREGS.CISCO.COM
(temp, EX)
24
IP
172.20.1.30
The following is sample output from the show hosts vrf command with a VRF name red specified:
Router# show hosts vrf red 
vrf vrf-name
(Optional) Defines a Virtual Private Network (VPN) routing and 
forwarding instance (VRF) table. The vrf-name argument specifies a 
name for the VRF table. Only the name cache entries for a particular 
VRF will be displayed.
all
Displays all name cache entries.
hostname
Displays the name cache entries for a particular hostname.
summary
(Optional) Displays a brief summary of the name caches.
Release
Modification
10.0
This command was introduced.
12.2(4)T
This command was updated to support the Cisco modem user interface 
feature.
12.4(4)T
The vrfall, and summary keywords and vrf-name and hostname arguments 
were added.