# Specify the DNS server 184.108.40.206.
[SwitchB] dns server 220.127.116.11
# Execute the ping host.com command on Switch B to verify that the communication between the
Switch and the host is normal and that the corresponding destination IP address is 18.104.22.168.
[SwitchB] ping host.com
Trying DNS resolve, press CTRL_C to break
Trying DNS server (22.214.171.124)
PING host.com (126.96.36.199):
data bytes, press CTRL_C to break
Reply from 188.8.131.52: bytes=56 Sequence=1 ttl=126 time=3 ms
Reply from 184.108.40.206: bytes=56 Sequence=2 ttl=126 time=1 ms
Reply from 220.127.116.11: bytes=56 Sequence=3 ttl=126 time=1 ms
Reply from 18.104.22.168: bytes=56 Sequence=4 ttl=126 time=1 ms
Reply from 22.214.171.124: bytes=56 Sequence=5 ttl=126 time=1 ms
--- host.com ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/3 ms
Troubleshooting DNS Configuration
After enabling the dynamic domain name resolution, the user cannot get the correct IP address.
Use the display dns dynamic-host command to verify that the specified domain name is in the
If the specified domain name does not exist, check that dynamic domain name resolution is
enabled and the DNS client can communicate with the DNS server.
If the specified domain name is in the cache, but the IP address is incorrect, check that the DNS
client has the correct IP address of the DNS server.
Verify the mapping between the domain name and IP address is correct on the DNS server.