IP Addressing Commands
78-20269-01 Command Line Interface Reference Guide
35.21 show hosts
Use the show hosts EXEC mode command to display the default domain name, the
list of name server hosts, the static and the cached list of host names and
addresses.
Syntax
[name]
show hosts
Parameters
name—Specifies the host name. (Length: 1–158 characters. Maximum label length:
63 characters)
Command Mode
EXEC mode
Example
The following example displays host information.
Console>
show hosts
System name: Device
Default domain is gm.com, sales.gm.com, usa.sales.gm.com(DHCP)
Name/address lookup is enabled
Name servers (Preference order): 176.16.1.18 176.16.1.19
Configured host name-to-address mapping:
Host
-----------------
accounting.gm.com
Addresses
--------------------------
176.16.8.8 176.16.8.9(DHCP)
2002:0:130F::0A0:1504:0BB4
35
497