CompTIA Linux+ Powered by LPI (LX0-104) — Question 41
What is the purpose of the dig command?
Answer options
- A. It can be used as a tool for querying DNS servers.
- B. It can be used for searching through indexed file content.
- C. It can be used to look for open ports on a system.
- D. It can be used to ping all known hosts on the current subnet.
Correct answer: A
Explanation
The dig command is specifically designed for querying DNS servers to retrieve information about domain names and their corresponding IP addresses. Options B, C, and D describe functions related to file searching, port scanning, and pinging hosts, which are not applicable to the dig command.