DNS is a program storage protocol used to resolve hostnames into IP addresses. If your network has a DNS server, you can configure your Cisco device to use it for resolution. Here are the steps:
Enter the IP address of the IP server with the ip name server command. Up to six DNS servers can be specified.
(Optional) Enter the domain name to add to the host name that you type with the ip domain name command.
Here is an example configuration:
Floor1 (config) #ip nameserver 192.168.0.100
Floor1 # Ping file sharing
"Fileshare" is translated ... Domain Server (192.168.0.100)
Write the escape sequence to cancel.
Sending 5 100-byte ICMP echoes to 192.168.0.110, timeout 2 seconds:
, !!!!
As you can see in the above production, the host file share has been translated to the IP address 192.168.0.110.