nerdexam
CompTIA

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.

Networking Fundamentals

Question

Which of the following is the purpose of the dig command?

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)
  • B
    3% (2)
  • C
    2% (1)
  • D
    94% (61)
  • E
    2% (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.

ATo adjust a directory's hidden permissions

`dig` is a network tool and has no functionality related to adjusting directory permissions.

BTo search for files on the filesystem

Commands like `find` or `locate` are used for searching files on the filesystem, not `dig`.

CTo adjust a file's hidden permissions

`dig` is a network tool and has no functionality related to adjusting file permissions.

DTo perform hostname lookupsCorrect

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.

ETo ping all known hosts on the current subnet

`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

#DNS lookup#dig command#network utilities

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice