Resolving Hostnames
To use a hostname rather than an IP address to connect to a remote device, the device that you
are using to make the connection must be able to translate the hostname to an IP address.
You can resolve hostnames to IP addresses in two ways: building a host table on each router
or building a Domain Name System (DNS) server, which is similar to a dynamic host table.
Table 2.12 is a list of important commands that can be used to help you resolve hostnames on
a router:
TABLE 2 . 1 2 Hosts Table Commands
Command Meaning
ip host Creates a static host table on your router
show hosts Displays the host table on your router
ip domain-lookup Enables the DNS service
ip name-server Configures your device with the IP address of a DNS server
ip domain-name Configures domain suffix for fully qualified domain name