LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-01-2007, 08:25 PM   #1
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Rep: Reputation: 15
Virtual subdomains?


I'm trying to run a multipurpose server, and keep everything nice and organized with subdomains for my specific services.
The only problem is that (as far as I know) the only easy way to do this is to actually use multiple machines, which I'm too cheap to do :P

So, is there a way to make a specific service (ex. bahamut, postfix, etc) to run on a subdomain like apache (ex. irc.mydomain.org, imap.mydomain.org)?

(I also did some googling but found something about C++ code, which did nothing for me because I don't know C++ too well)

-Thanks
 
Old 10-02-2007, 05:52 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't quite follow what you mean. Do you want to be able to address by the relevant subdomain (eg attach mail client to imap.mydomain.org) or something deeper? If that's all, it's just a nameserver issue, so I'd assume that you want more. You could always use virtual machines with Xen or similar (cheaper that lots of boxes in plenty of ways).

Anyway, a bit more detail on what you want to achieve would be good.
 
Old 10-02-2007, 07:22 AM   #3
zamuro
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
Well... What I think you want to do is to assign some names to specific services, such as IRCd and mail, ain't it?

Try reading something about subdomains on BIND9, that'll pretty much do it. But, if you want _automated_ virtualhosts created by a script or something, I'd really appreciate if you are a little more specific with your needs in this particular case.

Last edited by zamuro; 10-02-2007 at 07:24 AM.
 
Old 10-03-2007, 08:36 PM   #4
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by zamuro View Post
Well... What I think you want to do is to assign some names to specific services, such as IRCd and mail, ain't it?

Try reading something about subdomains on BIND9, that'll pretty much do it. But, if you want _automated_ virtualhosts created by a script or something, I'd really appreciate if you are a little more specific with your needs in this particular case.
Exactly! I don't need it automated- I just want to (ex.) access my IRCd from ircd.mydomain.tld and not have it plainly on mydomain.tld, and so on, so I think that's what I'm looking for.

Problem is, BIND doesn't play too nicely with my not-so-static IP address. I'm caught wondering how I can configure everything for it, as much of the info in the assorted tutorials seems to apply to static address. Is there a good guide for configuration with a NAT router and a dynamic IP, (or someone just knows how?)

UPDATE: I've installed BIND and such, and it seems that Apache's virtual hosts are listening on all available subdomains. As well as that, every service is available from them (so my ircd is available on ***.mydomain). Can Apache and BIND play nicely with each other? Or will I have to use one or the other?

Thanks! ;-)

Last edited by timothyb89; 10-03-2007 at 10:26 PM.
 
Old 10-04-2007, 06:44 AM   #5
zamuro
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
You can have separate files for every subdomain you want to have. You just need to treat it as an A record on your zone files, but it's not a common practice for that matter. I would recommend to assign every subdomain you would like to add in a single zone file with A or CNAME flags. I'd also recommend you to try looking for some BIND9 documentation in order to fully understand what are you about to do in case you're at all interested on going deeper on Name Resolution.

For dynamic adresses, you should use an outside application, such as no-ip or dyndns in order to get a canonical name. There's not such a thing as a BIND9 configuration for NAT/Dynamic IP. At leat, there isn't such a thing for the purpose I'm assuming you want to give to the box you working on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
subdomains tommytomato Ubuntu 9 06-20-2007 07:30 AM
virtual hosts subdomains zenerdiode Linux - Server 5 04-30-2007 12:29 PM
After trying to make virtual subdomains with mod_rewriting eugene2008 Linux - Newbie 0 09-10-2006 07:43 PM
Subdomains on Apache2 with virtual hosts - how? <Ol>Origy Linux - Networking 2 08-18-2005 05:53 AM
Subdomains tommytomato Linux - Newbie 5 02-04-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration