When systemd‑resolved hides /etc/hosts, how to get it back
You’ve edited /etc/hosts to add a local hostname for a home‑lab service, but after a reboot the entry disappears from the output of getent hosts. The system still resolves the name, but it comes from a different source. That’s because systemd‑resolved, the default DNS stack on most recent Linux distributions, now prefers its own cache and configuration over the traditional /etc/hosts file. The result is a silent break in the workflow many beginners rely on.