Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jan 24, 2010 5:06 pm 
Offline
Senior Newbie

Joined: Sun Jan 24, 2010 4:21 pm
Posts: 16
Location: Herning
Hi

Today i took the jump in to the VPS world - Got apache working with my domain with out a hitch, guides on the site is great.

But i haven't been able to find much regarding sub domains and how i get other stuff than apache listning on them.

I have some given services i would like to run of the subdomain and not the main domain.

Some example could be subversion, mysql, teamspeak.

svn.domain.com
db.domain.com
ts.domain.com

How would i do that?

It seems pretty easy to make the a records for each subdomain - but how to i tell linux that these services should run on these domains and not the main one.


Top
   
 Post subject:
PostPosted: Sun Jan 24, 2010 5:11 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
DNS subdomains are independent of the act of listening; you do not configure a daemon to listen to a subdomain, you configure it to listen to an IP address. (Some daemon configurations accept subdomains, and will look up the address for you when they start up.)

You can add these A records to your domain and point them all at the same IP. As long as the different daemons in question listen on different ports, they can all run on the same IP address.

Does that make sense?

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sun Jan 24, 2010 5:25 pm 
Offline
Senior Newbie

Joined: Sun Jan 24, 2010 4:21 pm
Posts: 16
Location: Herning
"Completely"

Great examples on IRC:

Quote:
[22:15:10] <@jed> all of the services on your linode listen on different ports...you can add multiple subdomains that point at the same IP address
[22:15:38] <@jed> so if my linode is 1.2.3.4, I can make git.example.com IN A 1.2.3.4, and mysql.example.com IN A 1.2.3.4, then point my clients at git.example.com and mysql.example.com
[22:15:47] <@jed> since they listen on different ports, they can coexist side by side
[22:15:58] <@jed> you are then free in the future to move mysql and update mysql.example.com to the new address


Quote:
[22:16:44] <@jed> the only downside is that if you connect to git.example.com using mysql, it'll work
[22:16:54] <@jed> since the subdomain is just an alias
[22:17:00] <@jed> (if you consider that a downside)


And thx for the super fast reply on both forum and IRC :)


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