I am a little confused about the hosts file in Linux, and what I have to set in it. I am setting up an email server which is on our gateway. Now this machine obviously has an internal and external IP address. What hostname do I give this machine?
E.g. there is a website behind this machine, and the website is exampledomain.com Do I make up a hostname such as gw.exampledomain.com and assign that to the hosts file?