nerdexam
CompTIA

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.

Networking Fundamentals

Question

What is the purpose of the dig command?

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)
  • A
    91% (21)
  • B
    4% (1)
  • C
    4% (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.

AIt can be used as a tool for querying DNS servers.Correct

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.

BIt can be used for searching through indexed file content.

The `dig` command is not used for searching through indexed file content; tools like `grep` or specific search engines handle that function.

CIt can be used to look for open ports on a system.

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.

DIt can be used to ping all known hosts on the current subnet.

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

#dig command#DNS queries#Network utilities

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice