Cisco Certified Network Associate (CCNA) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the CCNA Exam with detailed questions and thorough study materials. Each question is accompanied by hints and explanations to facilitate your learning process. Get ready to ace the CCNA Exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the command to add the IP address of a DNS server in Cisco configuration mode?

  1. ip name-server

  2. set dns-server

  3. configure dns

  4. dns server add

The correct answer is: ip name-server

The command to add the IP address of a DNS server in Cisco configuration mode is "ip name-server." This command is used within the global configuration mode to specify the DNS server's IP address that the device will use for name resolution. When you enter "ip name-server" followed by the IP address, the router or switch can effectively resolve domain names to IP addresses by querying the specified DNS server. This is essential for operations where devices need to look up hostnames rather than working solely with IP addresses. The other options presented do not correspond to valid Cisco commands for configuring DNS settings. For example, "set dns-server," "configure dns," and "dns server add" are not recognized syntax in Cisco IOS, so they wouldn't yield the desired result of adding a DNS server for name resolution in the device’s configuration. Understanding the correct command allows network professionals to ensure proper DNS configuration as part of network management and troubleshooting.