nerdexam
CompTIA

XK0-005 · Question #338

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

The correct answer is B. /etc/rsolveconf. This question asks for the standard Linux file that contains DNS resolver configuration.

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

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    87% (34)
  • C
    3% (1)
  • D
    8% (3)

Why each option

This question asks for the standard Linux file that contains DNS resolver configuration.

A/etc/network

/etc/network is a directory often used for network interface configuration scripts, not DNS resolver settings directly.

B/etc/rsolveconfCorrect

The /etc/resolv.conf file is the primary configuration file on Linux systems that specifies the DNS name servers and search domains used by the system's DNS resolver. Checking this file allows an administrator to verify which DNS servers the system is configured to query for name resolution.

C/etc/nsswitch,conf

/etc/nsswitch.conf configures the Name Service Switch (NSS) which determines the order in which sources are queried for information, but it doesn't specify the DNS server IPs themselves.

D/etc/hosts

/etc/hosts maps hostnames to IP addresses locally on the system, bypassing DNS for those specific entries, but it does not specify the DNS servers to be used.

Concept tested: Linux DNS resolver configuration

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

Topics

#DNS configuration#Network settings#Linux filesystems

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice