nerdexam
CompTIACompTIA

XK0-005 · Question #1333

XK0-005 Question #1333: Real Exam Question with Answer & Explanation

The correct answer is B: /etc/rsolveconf. The /etc/resolv.conf file is the primary configuration file on Linux systems that specifies the DNS nameservers and search domains used for hostname resolution.

System Management

Question

Which of the following files would a junior systems administrator check to verify DNS server settings?

Options

  • A/etc/network
  • B/etc/rsolveconf
  • C/etc/nsswitch,conf
  • D/etc/hosts

Explanation

The /etc/resolv.conf file is the primary configuration file on Linux systems that specifies the DNS nameservers and search domains used for hostname resolution.

Common mistakes.

  • A. /etc/network is a directory that might contain network interface configuration files (like /etc/network/interfaces on Debian-based systems), but not directly DNS server settings.
  • C. /etc/nsswitch.conf configures the Name Service Switch, determining the order in which sources (like files, DNS, NIS) are queried for hostname, password, and group information, but it doesn't list the DNS server IPs themselves.
  • D. /etc/hosts maps hostnames to IP addresses locally on the machine, bypassing DNS for entries listed within it, but it does not specify the DNS servers to be used by the system.

Concept tested. DNS client configuration file

Reference. https://man7.org/linux/man-pages/man5/resolv.conf.5.html

Topics

#DNS configuration#Network configuration#Linux filesystems#Name resolution

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions