XK0-005 · Question #1214
XK0-005 Question #1214: Real Exam Question with Answer & Explanation
The correct answer is C: /etc/nsswitch.conf. {"question_number": 9, "question": "An administrator needs to change the DNS domain search order of a single Linux host to localize it better.", "correct_answer": "C", "explanation": "The 'search order' here refers to the order in which name resolution methods are consulted syste
Question
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?
Options
- A/etc/resolv.conf
- B/etc/hosts
- C/etc/nsswitch.conf
- D/etc/dhcpd.conf
Explanation
{"question_number": 9, "question": "An administrator needs to change the DNS domain search order of a single Linux host to localize it better.", "correct_answer": "C", "explanation": "The 'search order' here refers to the order in which name resolution methods are consulted system-wide. /etc/nsswitch.conf (Name Service Switch) controls this order via the 'hosts:' line, for example: 'hosts: files dns' means check /etc/hosts first, then query DNS. Changing this file lets the administrator prioritize local file resolution over DNS or vice versa, 'localizing' the host's resolution behavior. /etc/resolv.conf specifies which DNS servers to query and what domain suffixes to append, but not the resolution method order. /etc/hosts provides static mappings. /etc/dhcpd.conf is a DHCP server configuration file, unrelated to this task.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.