CompTIA Linux+ (XK0-004) — Question 134
An administrator needs to change the DNS domain search order of a single Linux host to localize it better. Which of the following files should the administrator edit?
Answer options
- A. /etc/resolv.conf
- B. /etc/hosts
- C. /etc/nsswitch.conf
- D. /etc/dhcpd.conf
Correct answer: C
Explanation
The correct answer is C, /etc/nsswitch.conf, because this file is responsible for determining the order of name resolution services. The other options do not directly control the DNS search order: A is for DNS resolver configuration, B is for local hostname mapping, and D is for DHCP server settings.