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.
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)- A3% (1)
- B87% (34)
- C3% (1)
- D8% (3)
Why each option
This question asks for the standard Linux file that contains DNS resolver configuration.
/etc/network is a directory often used for network interface configuration scripts, not DNS resolver settings directly.
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.
/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.
/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
Community Discussion
No community discussion yet for this question.