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.
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)- A5% (2)
- B93% (40)
- D2% (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.
/etc/network is a directory used on Debian-based systems for network interface configuration and does not directly define DNS nameserver addresses.
/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.
/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.
/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
Community Discussion
No community discussion yet for this question.