Question 500
In an LPIC-1 102-500 administration task, A system using systemd-resolved shows generated /etc/resolv.conf and an administrator edits it persistently. Which action should be taken?
Explanation
Correct Answer
The safest fitting response is Configure the upstream DNS through the responsible resolver or network manager. This works because Generated resolver files may be rewritten by the active network-resolver service. Validate it by showing After restart the intended DNS servers remain selected and queries succeed.
Incorrect Answers
This command or configuration addresses a different case: A user can reach a web service by IP but not by hostname and suspects DNS. Here, Generated resolver files may be rewritten by the active network-resolver service, so the targeted action is Configure the upstream DNS through the responsible resolver or network manager.
Although that change may be valid elsewhere, it responds to A security reviewer needs to query a specific DNS server rather than whichever resolver the host currently uses, not to this system state. The relevant fix is Configure the upstream DNS through the responsible resolver or network manager.
The alternative fits A host uses systemd-networkd, but an engineer repeatedly modifies NetworkManager profiles with no effect. The reported issue instead calls for Configure the upstream DNS through the responsible resolver or network manager, as Generated resolver files may be rewritten by the active network-resolver service.