I'm using Ubuntu 16.04. I recently started learning DevOps and got a bit crazy with my /etc/hosts
and /etc/hostname
files. In my frantic attempt to spin up a couple of servers from my local machine I lost track of the default settings, and was just curious to know what they are/were.
As I recall /etc/hosts
and /etc/hostname
had only one entry, which was the username of my local machine. However I'm not entirely sure.
By any chance does anyone know what the default settings are with a fresh install?
127.0.0.1 localhost
is on first line instead127.0.1.1 myhostname
– buncis Aug 06 '21 at 20:34The order of items in this doesn't matter either.
– thomasrutter Mar 14 '23 at 12:40