InMotion Hosting Support Center

Subdomain forwarding(not redirection) to another static IP server ?

Category: Cpanel

InMotionFans
n/a Points
Asked:
2017-05-09 7:45 am EST

Hits: 2,837
Hi All,

I have a question to ask.

Recently, we have created a new subdomain(XYZ.domain.com) to our domain (domain.com). Our main domain points to a server IP which hosts our website. Our new requirement is to have our subdomain point to another IP server which hosts our crucial enteprise web applications. This new server is currently accessible over the Internet through its public static IP provided by our ISP.

The problem is I can only see Sub-domain redirections in cPanel. With sub-domain redirection, once a user visits our subdomain, it redirects him to the specified URL, changes the URL and reveals our static IP (which is what we want to hide).

So is there a way to permanently associate our sub-domain with this static IP ?

Please correct if I am wrong but what we want may be is an A-record from our sub-domain to this other static IP so that it always hides our static IP. The other reason for this requirement it to allow us have SSL certificate on the new sub-domain.

Please help and advise us to resolve the issue.

Thank you.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

christopherm
Staff
11,130 Points
2017-05-09 8:50 am EST
Hello,

Thanks for your question regarding subdomains and redirections. Judging from the goal you're trying to achieve, I agree that the A record may be the best option.

In this case, you will want to use the DNS editor in cPanel.


  1. Edit the subdomain records

  2. Change it to an A record

  3. Input the IP as its destination



I hope that achieves the effect you're hoping for. Allow 4-24 hours for domain propagation, just in case.

Best,
Christopher M.

You must login before you can post a comment about this answer.

Thank you for the reply.
I have the exact same problem...
I have added an A record with the name xyz.domain.com of type a that points to the IP and it is still showing the IP address in the address bar.
I tried this while forwarding the subdomain to the ip and without, both case it is not working
Hameed
3 Points
2017-09-16 2:10 pm EST
Hello Hameed,

Once you have made the change you will need to allow 4-24 hours for the DNS changes to propagate, If you also had previously tried to use a redirect to achieve this it will likely still be cached in your browser so you may need to clear your cache.

Best Regards,
Kyle M
KyleM
1,173 Points
Staff
2017-09-18 10:58 am EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!