LX0-104 · Question #668
What is the purpose of the dig command?
The correct answer is A. It can be used as a tool for querying DNS servers.. The dig command is a powerful command-line utility specifically designed for querying DNS (Domain Name System) servers to retrieve various types of DNS records.
Question
Options
- AIt can be used as a tool for querying DNS servers.
- BIt can be used for searching through indexed file content.
- CIt can be used to look for open ports on a system.
- DIt can be used to ping all known hosts on the current subnet.
How the community answered
(23 responses)- A91% (21)
- B4% (1)
- C4% (1)
Why each option
The `dig` command is a powerful command-line utility specifically designed for querying DNS (Domain Name System) servers to retrieve various types of DNS records.
The `dig` command, short for 'Domain Information Groper,' is a flexible tool used by system administrators and network professionals to perform DNS lookups and troubleshoot DNS-related issues, providing detailed information about DNS records.
The `dig` command is not used for searching through indexed file content; tools like `grep` or specific search engines handle that function.
The `dig` command is not designed to look for open ports on a system; commands like `netstat`, `ss`, or `nmap` are used for port scanning.
The `dig` command does not ping hosts; the `ping` command is used for sending ICMP echo requests to test network connectivity to specific hosts.
Concept tested: dig command purpose
Source: https://www.man7.org/linux/man-pages/man1/dig.1.html
Topics
Community Discussion
No community discussion yet for this question.