Redirect new subdomain to another server


tgonhawk1

Recommended Posts

What I have:

  • A domain registered with some registrar, let's call it "R".
  • A domain hosted by Hawkhost (shared hosting), let's call it mydomain.com
    • The nameservers are ns1.hawkhost.com and ns2.hawkhost.com
  • I have a VPS hosted elsewhere which performs some related functions to this domain
    but isn't a website per se.

What I want to do:

  • Create a new subdomain for this domain, let's call it alternative.mydomain.com
  • Connect that subdomain name to the IP of the VPS.

The main question is: How do I do that?

I looked at the functions on my registrar's site, and there was something about "subdomain redirection",
but it said I need to use *their* nameservers instead of hawkhosts.   I'd rather not do that, in case,
as happened recently with my hosting being moved from DC to NY, the IP changed with it, and
hawkhost took care of that, resulting in no downtime.

I can add the subdomain in cpanel, but that's not really what I want since it would hosted elsewhere,
but maybe there is some fancy DNS editing I can do on top of it to make it work.

Any suggestions? (If not, where should I ask about this?)

 

Link to comment
Share on other sites

I found a very simple answer to my question:

In cPanel, I simply added an "A" record to my DNS zone file (I think that's the right terminology)
associating newsubdomain.mydomain.com with the desired IP address.

I did not have create a whole (real) subdomain to do that.

 

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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...