Difference between /etc/hosts and /etc/hostname
I have often found myself in difficult situations without knowing what exactly is the difference between host and hostname
/etc/hostname -> Assigns a name to local machine and you can set the name of the machine by editing this file. It can be a FQDN eg. vps.example.com. You will also need …




