The DNS protocol controls the DNS, a distributed database with which you can map hostnames to IP addresses. When you configure DNS on the device, you can substitute the hostname for the IP address with all IP commands, such as ping or telnet.

To display the DNS configuration information on the switch or router, use the show running-config command. When there is no DNS server installed, it is possible to enter names to IP mappings directly into the switch or router configuration. Use the ip host command to enter name to IPv4 mapping to the switch or router. The ipv6 host command is used for the same mappings using IPv6. These commands are demonstrated in Figure 1. Because IPv6 network numbers are long and difficult to remember, DNS is even more important for IPv6 than for IPv4.

To display the name-to-IP-address mapping information on the Windows-based PC, use the nslookup command.

Troubleshooting Example

The output in Figure 2 indicates that either the client was unable to reach the DNS server or the DNS service on the 10.1.1.1 was not running. At this point, the troubleshooting needs to focus on communications with the DNS server, or to verify the DNS server is running properly.

To display the DNS configuration information on a Microsoft Windows PC, use the nslookup command. There should be DNS configured for IPv4, IPv6, or both. DNS can provide IPv4 and IPv6 addresses at the same time, regardless of the protocol that is used to access the DNS server.

Because domain names and DNS are a vital component of accessing servers on the network, many times the user thinks the “network is down” when the problem is actually with the DNS server.