The /etc/hosts file is the basic simple way to name the different machine on your network. Keep in mind that the definitions you are entering here are local to this machine and won't be share with any machine on the network. This means potential problem as two machines may have an incompatible /etc/hosts file (because of an operator error for example).