Add new server as subdomain

4 posts / 0 new
Last post
#1 Wed, 10/31/2012 - 17:38
SteveHeinsch

Add new server as subdomain

I have a vm pro setup on a dedicated server, which has a virtual server set up (domain.com). I am going to get a separate linode server to host a large application on and want to have that be a subdomain of the main domain (sub.domain.com). I take it I would just add a new "A" DNS entry for "sub" in the domain.com account to point to that new servers IP.

The new server will be running Ubuntu 12. How do I set this machine up? What do I name it, etc? The FQDN would be sub.domain.com, correct? How do I set DNS up? I think I'll just need webmin on this machine as it won't be hosting any virtual sites, but it will need to host the sub.domain.com website.

Any thoughts or input on doing this would be appreciated.

Thanks, Steve

Wed, 10/31/2012 - 23:57
andreychek

Howdy,

I might suggest setting up Virtualmin GPL on your Linode. And then, in your Virtualmin GPL instance, you could setup "sub.domain.com" as a Virtual Server.

The FQDN of the server itself doesn't matter, the key is that sub.domain.com would need to point to your Linode.

And for that to happen, you'd have to configure the DNS on your Virtualmin Pro server (or wherever DNS for domain.com resides) to point to the Linode.

-Eric

Thu, 11/01/2012 - 07:25
Locutus

@Steve: What exactly is that "application"? Something web-based that needs Apache, MySQL, Postfix and stuff? Or something independent?

In the latter case, it will suffice to make an A entry for "sub.domain.com" in the nameserver that hosts "domain.com" and point it to the right IP.

If it needs web stuff, go with Eric's suggestion and install Virtualmin GPL on it, host the "sub.domain.com" including nameserver there, and make an NS entry in the "domain.com" nameserver. That will make your life much easier. :)

Thu, 11/01/2012 - 10:09
SteveHeinsch

Yes, it's basically going to be running cron jobs constantly to get MLS listings from RETS/IDX servers (Real Estate) across the country and compiling the data for use on the main server. So a full lamp stack.

I did get it running last night just by playing around and it only took about 20 minutes to set everything up (used GPL for more control but it was working fine without it). The whole thing was flawless (hats off to vm).

I appreciate the replies! This is going to be a fun project.

Topic locked