Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Dec 31, 2008 10:58 am 
Offline
Senior Newbie

Joined: Wed Dec 31, 2008 10:49 am
Posts: 6
Fixed, thanks for your help :)


Last edited by Andrea on Thu Jan 01, 2009 5:18 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 11:53 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
How to best organise this is explained in 'Issues Regarding DNS and Apache' on the Apache website.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 1:53 pm 
Offline
Senior Newbie

Joined: Wed Dec 31, 2008 10:49 am
Posts: 6
thanks for the link, but this didin't help with my problem.


Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 3:18 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
A fully qualified domain name is something that ends with a top-level domain such as .com, .org, .net, etc. Basically, if it looks like something that belongs to the location bar of your web browser (e.g. www.linode.com), it's a fqdn.

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/

Code:
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

Code:
linode1


There are several ways to achieve the same effect, so other people will use different combinations of configuration.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group