I know there's quite a few questions about host names. But even after reading them, I didn't really understand the concept of host names entirely. So here's my question:
I've been following this guide in setting up a VPS with Linode.
The first step is to set a host name. From what I understand, a host name is just an arbitrary name you can set to identify your machine in a network. Also, the FQDN is the host name plus the domain name (which can or can not be related to web domains hosted on the server). Please correct me if I'm wrong.
Then it instructs me to modify /etc/hosts and add in something like:
12.34.56.78 plato.example.com plato
So my question is, what exactly does this line accomplish? I've done it before but never really understood what it did. Also, if the host name and the domain name used in the FQDN is just arbitrary, where can they be used? Actual use cases would be very helpful and detailed explanation would be great. Thanks!