Jump to content

Linking A Subdomain To An External Domanin


Recommended Posts

Hello all,

 

I am trying to link two websites in such a way that by using a subdomain of one I can access the files on the second.

 

For example, I want to be able to get:

 

http://www.second.com/dir/index.html

 

From:

 

http://sub.first.com/dir/index.html

 

 

 

I can use DNS Zone editors to make records (on the first I can make A, CNAME and TXT records and on the second I can make A, MX, AAAA, CNAME, HINFO, NAPTR, NS, PTR, RP, SRV and TXT records).

 

Also, please could you tell me a good place to learn how to do this type of thing in the future.

 

Thank You,

Scott

Link to comment
Share on other sites

You could just redirect the sub.second.com/dir/index page to the first.com/dir/index page in cPanel, assuming both sites are registered in your cPanel.

 

Another idea would be to use frames, which would let you load sub.second.com/dir/index and first.com/dir/index in one page.

Link to comment
Share on other sites

Sorry, I wasn't clear.

 

I want to be able to access everything on second.com from sub.first.com, not just webpages but directories, images and everything else.

 

Also the two accounts are from different providers (the first is from HelioHost and the second is from 1freehosting.com), I am trying to make this set up work as as 1freehosting provides just under 10GB disk size and I am running out of space on the HelioHost account. However 1freehosting caps the amount of email address, databases etc that you can have, therefore the two accounts, when put together in the afore mentioned way provide an ideal environment.

Link to comment
Share on other sites

Is the CNAME record:

 

www.space.spow.tk IN CNAME www.spow.hostingsiteforfree.com

 

and have A records:

 

www.spow.hostingsiteforfree.com IN A 31.170.163.241

|| || 64.191.115.234

|| || 173.192.183.247

|| || 31.170.164.249

 

should work for you. Note: || means "ditto", since you said your other site is hosted by 1fh, those are ns1-ns4 IPs for 1freehosting.com.

Link to comment
Share on other sites

If Shinryuu's method does not work, it is possible 1freehosting filters domains not pointed to their nameservers. Unfortunately, HelioHost does not support setting NS records for domains.

 

You may need to add or park space.spow.tk in 1freehosting's cPanel, although CNAME records should not be causing such behavior.

 

Be sure you are setting DNS records for space.spow.tk AND www.space.spow.tk and allow up to 24 hours for DNS to fully update.

Link to comment
Share on other sites

Thank you so much for all of your help, but please could you explain further:

Am I meant to set up the CNAME record in the DNS Zone Editor of the HelioHost account or the 1FreeHostng account;

Also, in the 1FreeHost account there are four NS records which read:

 

spow.hostingsiteforfree.com. IN NS ns1.1freehosting.com.
spow.hostingsiteforfree.com. IN NS ns2.1freehosting.com.
spow.hostingsiteforfree.com. IN NS ns3.1freehosting.com.
spow.hostingsiteforfree.com. IN NS ns4.1freehosting.com.

 

Would this suffice or do I still need to put in the A records and if so in which account do I put them in.

 

Thanks Again

Link to comment
Share on other sites

The A records are for the HH account, the HelioHost account's CNAME record will point the subdomain to the 1fh-hosted main domain's URL, but the way CNAME works is by pointing one URL to another, the nameserver then checks the A records for the pointed-to URL, which with those A records would tell the HH ns to pass the request to 1fh's nameservers, without them the HelioHost ns has no idea where the second URL is located.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...