show hosts

Query the DNS host for information about host addresses. You can enter either a hostname or an IP address. If you enter the hostname, this command shows the IP address corresponding to the hostname and if you enter an IP address, this command shows the hostname for the IP address.

Syntax

Command Parameters

WORD<0-256>
Specifies one of the following: the name of the host DNS server as a string of 0-256 characters, the IP address of the host DNS server in a.b.c.d format, or the IPv6 address of the host DNS server in hexadecimal format (string length 0-46).

Default

None

Command Mode

User EXEC