200-301 · Question #829
Which command must you use to test DNS connectivity?
The correct answer is B. show hosts. To test DNS connectivity on a Cisco IOS device, the show hosts command can verify if hostnames have been successfully resolved and cached.
Question
Which command must you use to test DNS connectivity?
Options
- Atelnet
- Bshow hosts
- Cipconfig
- Dshow interfaces
How the community answered
(50 responses)- B94% (47)
- C2% (1)
- D4% (2)
Why each option
To test DNS connectivity on a Cisco IOS device, the `show hosts` command can verify if hostnames have been successfully resolved and cached.
The `telnet` command is used for establishing remote terminal connections or testing TCP port reachability, not specifically for DNS resolution.
The `show hosts` command on Cisco IOS displays a cache of resolved hostnames and their corresponding IP addresses. If dynamically resolved names appear in this table, it indicates that the device has successfully performed DNS lookups, thereby confirming DNS connectivity and functionality.
The `ipconfig` command is a Microsoft Windows command-line utility used for displaying and managing network interface configurations, and it is not available on Cisco IOS devices.
The `show interfaces` command provides detailed operational and statistical information about network interfaces, which is unrelated to DNS connectivity or name resolution.
Concept tested: Cisco IOS DNS Verification
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dns/configuration/xe-16/iad-dns-xe-16-book/iad-dns-overview.html#GUID-E13398D9-B114-490C-858B-E9684C1087F5
Topics
Community Discussion
No community discussion yet for this question.