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

    • itmosi@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Never, there’s no need for it. I can reach it with localhost or 127.0.0.1, so why would I even put it in?

    • jokeyrhyme@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      13 hours ago

      seems like a pretty common practice across Linux distributions

      /etc/hostname for the actual hostname, and a mapping in /etc/hosts pointing it at a 127.x.x.x address