stangilbert wrote:
1. The /etc/hostname in the raw distro is set to 'none'... I am uncertain how this should be set. I edited the file to say...
webserver
You might want to give the server a real name ("rivertam" or something) instead of naming it after its purpose, unless it's *only* going to be a web server, forever. Heck, it's not even only a web server now: you said it's a mail server too.
stangilbert wrote:
2. I placed an entry into the /etc/hosts that looks like this...
67.18.208.11 webserver.acmewebserver.net webserver
... indeed, I own the domain acmewebserver.net. Is this correct? Is this necessary? Why?
When I set up an Ubuntu server recently, I set the hostname in /etc/hostname like you did, but instead of editing /etc/hosts, I did this:
- In my DNS configuration, I added a subdomain for my Linode, with an A record pointing to its IP (e.g. webserver.acmewebserver.net and 67.18.208.11).
- In /etc/resolv.conf, I changed "search linode.com" to "search acmewebserver.com"
- In /etc/dhcp3/dhclient.conf, I changed '#supersede domain-name "fugue.com home.vix.com";' to 'supersede domain-name "acmewebserver.com";'
- Once the DNS change had propogated, I went to Linode's reverse DNS manager, entered the subdomain I created earlier, webserver.acmewebserver.com, and so set the reverse DNS.
From what I could tell, that's the right way to set a hostname, but I'm not 100% sure. It definitely worked though.