Using DNS names with ping and traceroute

In the network illustrated in Example network domain, the switch at 10.28.192.1 is configured to use DNS names for DNS-compatible commands in the pubs.outdoors.com domain. The DNS server has been configured to assign the host name docservr to the IP address used by the document server (10.28.229.219).

Example network domain

Example network domain

Configuring switch "A" with the domain name and the IP address of a DNS server for the domain enables the switch to use host names assigned to IP addresses in the domain to perform ping and traceroute actions on the devices in the domain. To summarize:

Entity

Identity

DNS server IP address

10.28.229.10

Domain name (and domain suffix for hosts in the domain)

pubs.outdoors.com

Host name assigned to 10.28.229.219 by the DNS server

docservr

Fully qualified domain name for the IP address used by the document server (10.28.229.219)

docservr.pubs.outdoors.com

Switch IP address

10.28.192.1

Document server IP address

10.28.229.219

With the above already configured, the following commands enable a DNS-compatible command with the host name docserver to reach the document server at 10.28.229.219.

Configuring switch "A" in Example network domain to support DNS resolution

Configuring switch "A" in to support DNS resolution

Example of ping and traceroute execution for the network in Example network domain

Example of ping and traceroute execution for the network in

As mentioned under DNS resolver operation, if the DNS entry configured in the switch does not include the domain suffix for the desired target, you must use the target host's fully qualified domain name with DNS-compatible commands. For example, using the document server in Example network domain as a target:

Example of ping and traceroute execution when only the DNS server IP address is configured

Example of ping and traceroute execution when only the DNS server IP address is configured