You are not logged in.

#1 2011-08-05 13:09:22

Watermel0n
Member
Registered: 2010-03-10
Posts: 60

difference between hostname and domainname?

Hi guys I have a server and a domain.
I want every service like imap, smtp, xmpp, ssh and http to be available on this domain and not on different hosts/subdomains.
Like awesomedomain.com and not smtp.awesomedomain.com
So what should I set as a hostname? is it irrelevant? Should I just set the domainname as hostname? I don't understand this sad

Offline

#2 2011-08-05 13:11:26

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: difference between hostname and domainname?

please do not start threads in random forums. [testing] is meant for people using [testing] repo.

and you question is generally a basic linux question. Moving to GNU/Linux Discussion.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-08-05 13:16:34

Watermel0n
Member
Registered: 2010-03-10
Posts: 60

Re: difference between hostname and domainname?

Oh my god I'm totally sorry lol. I thought I posted this in the networking forums. I made a mistake. Could you move it there or is it a general gnu/linux question?

Offline

#4 2011-08-05 13:18:45

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: difference between hostname and domainname?

Watermel0n wrote:

Oh my god I'm totally sorry lol. I thought I posted this in the networking forums. I made a mistake. Could you move it there or is it a general gnu/linux question?

That's alright. It is a general question as you don't necessarily have a problem with a package in the repo. You just want to understand the concept. Ergo -- GNU/Linux Discussion.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-08-06 10:50:02

Denacke
Member
Registered: 2008-04-09
Posts: 106

Re: difference between hostname and domainname?

I believe you can indeed just set your domainname as hostname then.

I believe the subdomains come in handy when you have built up a solid userbase, and would want to split the smtp server from the rest for example. You could just change the IP that smtp.yourdomain.tld points to and your users wouldn't notice a thing. That opposed to having your users change all the settings themselves. smile

Offline

Board footer

Powered by FluxBB