Study for the CompTIA Cloud+ Test. Prepare with flashcards and multiple-choice questions, each question featuring hints and explanations. Get ready for your exam success!

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.


Which two utilities are used to query a DNS server?

  1. nslookup, dig

  2. whois, ping

  3. netstat, tracert

  4. ipconfig, nslookup

The correct answer is: nslookup, dig

The utilities used to query a DNS server are nslookup and dig. Nslookup is a command-line tool that allows users to query DNS information about a domain, such as its associated IP addresses and mail server records. It is widely used for troubleshooting DNS-related issues and retrieving DNS records. On the other hand, dig (short for Domain Information Groper) is another powerful command-line tool that provides more detailed information and flexibility compared to nslookup. It allows users to perform various DNS queries and shows more extensive output, making it useful for advanced DNS troubleshooting. The other options listed do not primarily serve the purpose of querying DNS data. Whois is primarily used to retrieve registration information about domain names rather than DNS records. Ping is a utility used to test network connectivity to a specific IP address or hostname, not specifically for querying DNS servers. Netstat provides information about network connections, and tracert is used to trace the route packets take to reach a destination host, neither of which are used for querying DNS records. Lastly, while ipconfig can show DNS server information in a local context, it does not query a DNS server itself for information.