Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Apr 25, 2010 3:13 pm 
Offline
Junior Member

Joined: Wed Mar 17, 2010 3:24 pm
Posts: 26
I have some confusion about the /etc/hosts and /etc/hostname files. Yep, I'm new to both linux and apache. I followed the linode setup guide, but I think I missed something. First, when I restart apache I get an error:

apache2: apr_sockaddr_info_get() failed for snake
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Second, how do I create a Fully Qualified Domain Name (FQDN)? The examples I've looked at seem to have many different formats such as www.domain.com, mail.domain.com, host.domain.com, something.domain.com. How do you know what to put in for the first part (????.domain.com)?

Third, does the name of my linode under Linode Manager make any difference?

My /etc/hostname file

Code:
snake


My /etc/hosts file

Code:
127.0.0.1          localhost
74.XXX.XXX.XX      snake.myDomain1.com      myDomain1
74.XXX.XXX.XX      snake.myDomain2.com      myDomain2

_________________
I'm completely new to the LAMP stack.


Top
   
 Post subject:
PostPosted: Sun Apr 25, 2010 4:37 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
OK the first part ???.domain.com can be whatever you like, I personally name mine after greek gods (yeah sad I know).

If you like snake then yours would be snake.domain.com

To set it, ssh to your server as root and type

hostname snake.domain.com

Also you can edit your apache httpd.conf and add the line

ServerName snake.domain.com

near the top.

You should then go to the linode manager, network tab, and set your reverse dns to snake.domain.com


Top
   
PostPosted: Mon Apr 26, 2010 10:30 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
eekeek wrote:
How do you know what to put in for the first part (????.domain.com)?

It's up to you what you name your computer. Think of something. Or name it "linoderocks". :D

[Edit: In other words, use the name of the computer. You seem to have picked "snake", so, yeah.]

eekeek wrote:
Third, does the name of my linode under Linode Manager make any difference?

No.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 4:24 am 
Offline
Junior Member

Joined: Wed Mar 17, 2010 3:24 pm
Posts: 26
Awesome guys - Thanks for the input! It all seems to be working fine now. :D

_________________
I'm completely new to the LAMP stack.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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