Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Domain name as hostname?
PostPosted: Sat May 02, 2009 12:52 am 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Can I use my domain name as my server host name?
Are there any problems with this setup:

/etc/hostname
sample

/etc/hosts
127.0.0.1 localhost
xx.xx.xx.xx sample.com sample


Top
   
PostPosted: Sat May 02, 2009 4:02 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
neo wrote:
Can I use my domain name as my server host name?
Are there any problems with this setup:

/etc/hostname
sample

/etc/hosts
127.0.0.1 localhost
xx.xx.xx.xx sample.com sample


You need to have a hostname, example

xx.xx.xx.xx webserver.sample.com webserver

_________________
Image
Where "Thought Crime" is commited
http://www.rejecttheherd.net


Top
   
PostPosted: Sat May 02, 2009 6:28 pm 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
marcus0263 wrote:
You need to have a hostname, example

xx.xx.xx.xx webserver.sample.com webserver

Thank you for your answer. I did setup test system with my domain name as host name and everything seems to work fine. Can you please explain what are the disadvantages of such setup?


Top
   
PostPosted: Sat May 02, 2009 8:05 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
neo wrote:
marcus0263 wrote:
You need to have a hostname, example

xx.xx.xx.xx webserver.sample.com webserver

Thank you for your answer. I did setup test system with my domain name as host name and everything seems to work fine. Can you please explain what are the disadvantages of such setup?

Your Domain is your domain, host is server. Look at it this way -

Domain = Your Country
hostname = Your City

Think of the complications if all City's in America were just simply called America, get the picture?

_________________
Image

Where "Thought Crime" is commited

http://www.rejecttheherd.net


Top
   
PostPosted: Sat May 02, 2009 8:34 pm 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
marcus0263 wrote:
Your Domain is your domain, host is server. Look at it this way -

Domain = Your Country
hostname = Your City

Think of the complications if all City's in America were just simply called America, get the picture?


Using your analogy, if it's a very small country with only one city, that city essentially IS the country so it would make sense if they used the same name. Since my server handles everything for my web domain, essentially it IS the domain.

Actually since it handles everything for multiple domains, it would make sense for it to have multiple host names, but that's another question.


Top
   
PostPosted: Sat May 02, 2009 10:28 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
neo wrote:
marcus0263 wrote:
Your Domain is your domain, host is server. Look at it this way -

Domain = Your Country
hostname = Your City

Think of the complications if all City's in America were just simply called America, get the picture?


Using your analogy, if it's a very small country with only one city, that city essentially IS the country so it would make sense if they used the same name. Since my server handles everything for my web domain, essentially it IS the domain.

Actually since it handles everything for multiple domains, it would make sense for it to have multiple host names, but that's another question.

No your domain is your domain, your server is your server. Apples and Oranges my friend ;)

Think of it this way, your domain is your city, your hostname is your house/ a building.

Bottom line you'll run into problems, stick with the standards ;)

_________________
Image

Where "Thought Crime" is commited

http://www.rejecttheherd.net


Top
   
PostPosted: Sun May 03, 2009 7:56 am 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
marcus0263 wrote:
neo wrote:
Using your analogy, if it's a very small country with only one city, that city essentially IS the country so it would make sense if they used the same name. Since my server handles everything for my web domain, essentially it IS the domain.

Actually since it handles everything for multiple domains, it would make sense for it to have multiple host names, but that's another question.

No your domain is your domain, your server is your server. Apples and Oranges my friend ;)
Think of it this way, your domain is your city, your hostname is your house/ a building.
Bottom line you'll run into problems, stick with the standards ;)

You may well be right about this, but I would like to hear any arguments besides "don't do it".


Top
   
PostPosted: Sun May 03, 2009 9:22 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
This is the basis for the advice offered:

RFC 1178 - 'Choosing a Name for Your Computer' wrote:
Avoid domain names.

For technical reasons, domain names should be avoided. In particular, name resolution of non-absolute hostnames is problematic. Resolvers will check names against domains before checking them against hostnames. But we have seen instances of mailers that refuse to treat single token names as domains. For example, assume that you mail to "libes@rutgers" from yale.edu. Depending upon the implementation, the mail may go to rutgers.edu or rutgers.yale.edu (assuming both exist).

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sun May 03, 2009 9:26 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What do you plan to call your second server? Having a basic hierarchy and naming scheme chosen at the start means growth is that much easier.

RFC 1178 covers the topic of choosing a hostname, although some of the examples are slightly dated.

(For the record: here, servers and workstations are named after beers, point-to-point links have a more utilitarian scheme, cars are named after beetles indigenous to the country of manufacture, and a cat must have THREE DIFFERENT NAMES.) -rt


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


Who is online

Users browsing this forum: No registered users and 0 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