/etc/hostname and /etc/hosts
I'm looking to set up a web and mail server on my Linode, and I was wondering if someone might be able to help set up the hosts file.
I've created subdomains like the following in DNS, all the entries point to the same Linode IP.
example.com
www.example.com mail.example.com
I'm a little confused about the /etc/hostname file. Will the hostname specified here have any effect other than the console prompt, etc?
Also, could anyone help with writing a correct /etc/hosts file for the above? I'm not entirely sure how it's used and what the implications are.
Many thanks for any assistance!