Question 160
An operator on RHEL 10 confirms the following issue: A host's static hostname was changed temporarily but reverts on the next boot. The diagnostic finding is: Inspect hostnamectl static hostname and persistent hostname configuration. What action best resolves the verified condition?
Explanation
Correct Answer
The change that addresses the reported condition is to set the approved static hostname using hostnamectl and verify local resolution if needed. The host problem is: A host's static hostname was changed temporarily but reverts on the next boot. The supporting evidence is to inspect hostnamectl static hostname and persistent hostname configuration. Check success by verifying that the intended hostname appears in hostnamectl output after reboot. The fix should be persistent where the task requires it.
Incorrect Answers
Remove or correct the approved stale static hosts entry after confirming authoritative DNS. The alternative concerns removing or correct the approved stale static hosts entry after confirming authoritative DNS, not setting the approved static hostname using hostnamectl and verifying local resolution if needed.
Set the authorized static address, prefix and gateway in the appropriate nmcli connection profile. This assesses the authorized static address, prefix and gateway in the appropriate nmcli connection profile; it does not determine the reported condition—a host's static hostname was changed temporarily but reverts on the next boot.
Configure approved DNS servers in the persistent connection profile. The case-specific requirement is setting the approved static hostname using hostnamectl and verifying local resolution if needed, which that option does not establish.