hehe, so … if you ever change the hostname of a Linux machine, you really really ought to double-check /etc/hosts to make the same hostname change there
it’s surprising just how much will break if a machine’s own hostname isn’t resolvable to a 127.x.x.x address :P
yep, I used that command to modify the hostname, rather than edit /etc/hostname directly
Interesting. I’ve changed my hostname on a few machines throughout the past and never ran into this. Good to know of I ever run into this in the future.
Nothing is worse than waiting for sudo to time out. I forget how long it would take, but it always feels like ages.
It’s always been wild to me how the seemingly-simplest change (“what is the name of this computer” has so many little gotchas and quirks.
Lost my mind a few years ago over this quirk. Now I always change both files when I want to change the hostname.
If you have myhostname set for hosts in /etc/nsswitch.conf it shall take care of this for you (should be the default on most systemd distros I believe? not sure)


