Web Hosting Talk







View Full Version : Subdomain on different host/box?


The Laughing Cow
03-20-2002, 01:34 PM
I was wondering, Is it possible to host a subdomain for my main domain on another box? i.e my Windows box?

So for example:

horizonhosting.co.uk is on Linux
support.horizonhosting.co.uk is on Windows?

Any ideas how I would do this? I am using Cpanel for Linux & HSphere for Windows?

Is this a DNS issue? Would I set the subdomain up in Cpanel for support and then setup this subdomain on Hsphere and change records to point to this?

What do you think?

zupanm
03-20-2002, 01:37 PM
i dunno about how to do it cpanel. But you need to do it in dns. just point it to the ip of your windows box.

The Laughing Cow
03-20-2002, 01:42 PM
I will have to look into my DNS,

I am trying to get it so when I type in

win.horizonhosting.co.uk it displays the contents of horizon.windydesign.com

Does this seem feasible? I obviously don't want redirection because I need it to look professional?

cabalstudios
03-20-2002, 01:50 PM
all you need to do is add a "A" name for the sub in the dns file pointing to the other server.

example:

linux box (hosting the dns for the domain mydomain.com)

mydomain.com. IN NS ns.mydomain.com.
mydomain.com. in A 1.2.3.4
www in CNAME mydomain.com.
sub.mydomain.com. in A 2.3.4.5

the above 1.2.3.4 is the IP for the linux box and 2.3.4.5 is the IP for the windows box.

now on the windows box, create a dns record -

sub.mydomain.com. IN NS ns.mydomain.com.
sub.mydomain.com. IN A 2.3.4.5

and add the hosting package u want :D

Imran

The Laughing Cow
03-20-2002, 02:11 PM
Ok, I have got a good idea of what I am doing, However

I have gone to the main domain and set the A record as

windows IN A IP.of.shared.account


This is just loading content from the shared IP. Do I need a dedicated IP set for the subdomain I wish to direct to?

cabalstudios
03-20-2002, 02:35 PM
Originally posted by The Laughing Cow
Ok, I have got a good idea of what I am doing, However

I have gone to the main domain and set the A record as

windows IN A IP.of.shared.account


This is just loading content from the shared IP. Do I need a dedicated IP set for the subdomain I wish to direct to?

IP.of.shared.account <-- is that the IP for the second box?

If so, you need to add the windows.yourdomain.com as a domain on your second box, and setup shared hosting for that domain, you do NOT need a dedicated IP :D

Imran

The Laughing Cow
03-20-2002, 02:43 PM
Cheers Imran I'm getting closer...



I have setup the subdomain on the windows server.

I have setup an A record for

subdomainlinuxserver A 123.123.123.123

(123.123.123.123 is the SHARED IP which the subdomain on the windows server is set to)

When I load the subdomain on the linux server It maps to 123.123.123.123. So this makes me think that it is all correct on the Linux server but I need to configure the Windows server?

Thanks for the help so far.

The Laughing Cow
03-20-2002, 02:56 PM
IP.of.shared.account yes, that is the IP for the windows box

The Laughing Cow
04-03-2002, 12:29 PM
So does anyone have an idea if you could specify a dns entry to point a subdomain and a shared IP? or domain name?