nerdexam
CompTIA

XK0-004 · 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. /etc/resolv.conf is the Linux file that stores DNS nameserver addresses and search domain settings used by the system resolver.

Server Side & Network Concepts

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

(43 responses)
  • A
    5% (2)
  • B
    93% (40)
  • D
    2% (1)

Why each option

/etc/resolv.conf is the Linux file that stores DNS nameserver addresses and search domain settings used by the system resolver.

A/etc/network

/etc/network is a directory used on Debian-based systems for network interface configuration and does not directly define DNS nameserver addresses.

B/etc/rsolveconfCorrect

/etc/resolv.conf (listed with a typo as /etc/rsolveconf in the question) is the primary resolver configuration file on Linux systems. It contains 'nameserver' directives that specify the IP addresses of DNS servers the system will query, making it the definitive file a junior administrator should inspect to verify DNS server settings.

C/etc/nsswitch,conf

/etc/nsswitch.conf controls the priority order of name resolution methods (files, dns, ldap) but does not contain the actual IP addresses of DNS servers.

D/etc/hosts

/etc/hosts provides static hostname-to-IP mappings for local resolution and does not specify which external DNS servers the system should contact.

Concept tested: DNS resolver configuration via /etc/resolv.conf

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

Topics

#/etc/resolv.conf#DNS configuration#nameserver#network settings

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice