LX0-104 · Question #232
Which of the following is the purpose of the dig command?
The correct answer is D. To perform hostname lookups. The dig command (Domain Information Groper) is a powerful command-line tool specifically designed for querying DNS name servers to perform hostname lookups and retrieve DNS record information.
Question
Options
- ATo adjust a directory's hidden permissions
- BTo search for files on the filesystem
- CTo adjust a file's hidden permissions
- DTo perform hostname lookups
- ETo ping all known hosts on the current subnet
How the community answered
(65 responses)- B3% (2)
- C2% (1)
- D94% (61)
- E2% (1)
Why each option
The `dig` command (Domain Information Groper) is a powerful command-line tool specifically designed for querying DNS name servers to perform hostname lookups and retrieve DNS record information.
`dig` is a network tool and has no functionality related to adjusting directory permissions.
Commands like `find` or `locate` are used for searching files on the filesystem, not `dig`.
`dig` is a network tool and has no functionality related to adjusting file permissions.
The `dig` command is used to query Domain Name System (DNS) servers, allowing users to perform hostname lookups and retrieve details about various DNS record types, which is crucial for network troubleshooting.
`ping` is used to test network connectivity to hosts, whereas `dig` focuses on DNS resolution.
Concept tested: DNS query tools (dig command)
Source: https://linux.die.net/man/1/dig
Topics
Community Discussion
No community discussion yet for this question.