Administrator Guide

Switch Management Commands 2000
show hosts
Use the show hosts command in User Exec mode to display the default
domain name, a list of name server hosts, and the static and cached list of
host names and addresses.
Syntax
shows hosts [hostname].
hostname—(Range: 1–255 characters). The command allows spaces in the
host name when specified in double quotes. For example,
console(config)#show hosts “host name”
Default Configuration
This command has no default configuration.
Command Mode
User Exec mode, Global Configuration mode and all Configuration
submodes
User Guidelines
This command has no user guidelines.
Example
The following example displays information about IP hosts.
console>show hosts
Host name: dellswitch
Default domain: dell.com
Name/address lookup is enabled
DNS source interface: loopback 1
Name servers (Preference order): 176.16.1.18 176.16.1.19
Configured host name-to-address mapping:
Host Addresses
-------------------------- ----------------------------
accounting.dell.com 176.16.8.8
Cache: TTL (Hours)
Host Total Elapsed Type Addresses
---------------- ----- ------- ------- -------------
www.stanford.edu 72 3 IP 171.64.14.203