Just signed to liode, little problem with the hostname.
3 Replies
'Issues Regarding DNS and Apache'
linode1 –- is not a fqdn.
linode1.yourdomain.com –- is a fqdn.
Also, you must also make sure that the fqdn you use actually points to the IP address of your server. (Otherwise you get the error, "unable to resolve host".) You can do this either by creating an A record for your fqdn in the DNS manager, or by adding a line to /etc/hosts.
The way you've set up /etc/hosts works fine, because you've tricked your server into believing that linode1 is actually a fqdn that resolves to 127.0.1.1. I think some versions of Debian/Ubuntu configure your /etc/hosts like that by default. But this isn't optimal. First, 127.0.1.1 doesn't point anywhere. Second, linode1 isn't a fqdn.
You have a static IP, so use it instead of 127.0.1.1. Assuming Debian/Ubuntu, the following should work for you.
In your /etc/hosts/
12.34.56.78 linode1.yourdomain.com linode1
(Replace 12.34.56.78 with your real IP address.) This sets up both the fqdn and the short name you're using. The fqdn must come first, or else you may get an error.
Then, in your /etc/hostname
linode1
There are several ways to achieve the same effect, so other people will use different combinations of configuration.