Question 320
What technical distinction explains why this Linux configuration is problematic: A technician edits /etc/resolv.conf directly but NetworkManager replaces it on reconnect?
Explanation
Correct Answer
The decisive distinction is Network-management services can regenerate resolv.conf from persistent connection settings. The targeted configuration is Configure DNS servers through the responsible connection profile or resolver manager; a proper test shows A reconnect retains the intended resolver and DNS queries succeed.
Incorrect Answers
The option would apply to “A user can reach a web service by IP but not by hostname and suspects DNS”. The relevant Linux mechanism is Name resolution is a separate prerequisite from IP reachability. This question instead requires “Network-management services can regenerate resolv.conf from persistent connection settings”.
The related but distinct situation is “A network administrator changes the server hostname only with the hostname command and it resets”. Here, Runtime hostnames and persistent system identity can be configured separately. For the stated problem, “Network-management services can regenerate resolv.conf from persistent connection settings” addresses the central condition.
This alternative addresses the separate case “A server needs a fixed default gateway for a persistent NetworkManager Ethernet profile”. The relevant Linux mechanism is Persistent gateway settings belong to the active network configuration manager. The deciding requirement here is “Network-management services can regenerate resolv.conf from persistent connection settings”.