nerdexam
Cisco

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.

Submitted by femi9· Mar 5, 2026IP Services

Question

Which command must you use to test DNS connectivity?

Options

  • Atelnet
  • Bshow hosts
  • Cipconfig
  • Dshow interfaces

How the community answered

(50 responses)
  • B
    94% (47)
  • C
    2% (1)
  • D
    4% (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.

Atelnet

The `telnet` command is used for establishing remote terminal connections or testing TCP port reachability, not specifically for DNS resolution.

Bshow hostsCorrect

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.

Cipconfig

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.

Dshow interfaces

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

#DNS#name resolution#show hosts#IOS CLI

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice