Ace your COMPTIA A+ certification with our practice exam. Engage with a variety of questions including multiple choice and performance-based, complete with hints and detailed explanations. Prepare effectively and boost your confidence for the big day!

Practice this question and more.


What does the nslookup command do?

  1. Displays current TCP/IP network configurations

  2. Translates name to IP address

  3. Shows the routing table

  4. Lists all current TCP/IP network connections

The correct answer is: Translates name to IP address

The nslookup command is used to translate human-readable domain names into IP addresses. This can be useful when troubleshooting network issues or verifying DNS configurations. Option A, displaying current TCP/IP network configurations, does not accurately describe the purpose of the nslookup command. Option C, showing the routing table, is also incorrect as this is not a function of the nslookup command. Option D, listing all current TCP/IP network connections, is also incorrect as this information would be provided by the netstat command. Therefore, the correct answer is B, translating name to IP address.