Redirect a subdomain to a different ip address.

I'm not sure if this is the right place to ask, but I'll give it a shot.

I have a hosted website and a private server that I would like to share the same domain name in a way.
When people go to www.mydomain.com I'd like it to go to the webserver and I set up a subdomain with the ip address for the private server as the redirected address so that I can go to telnet.mydomain.com 2066 and connect with a telnet session on port 2066 on the private server. But it doesn't seem to be forwarding it.

I don't have full access to the server as it's a hosted web site, but I have access to the cPanel (10.8.1) and can set up subdomains.

Any help would be appreciated! Am I barking up the wrong tree? trying to do something I can't?
LVL 1
GizaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TomeeboyCommented:
You would need to do this on the DNS level.  You can't set it up like a regular HTTP redirect and expect it to work with non-HTTP requests  If you aren't running the DNS servers that handle your domain, you would need to contact whoever is running them (your hosting company, probably) and ask them to set your sub domain to point to the private IP address.

Hope that helps! ;)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WilliamFrantzCommented:
Tomeeboy is absolutely correct, you need to modify the DNS zone records for your domain.  Not all registrars or hosting companies will let you do this.  However, GoDaddy.com (one of the biggest) will allow it through their "Total DNS Control" tool.

If you aren't using godaddy as your registrar, then I'd recommend switching to them.

If you haven't mucked around in DNS records before, you may want to do some reading about 'A records' and 'cnames'.  I use one 'A' record for my website that points to my hosting provider.  So it looks like this: "Host: @  Points To: 69.61.56.90  TTL: 3600".  Then I have a CName that goes to another machine, for example, "CNAME: news  Points To: cnn.com  TTL: 3600".

Now 'http://server.com' goes to my website, but 'http://news.server.com' goes to CNN.  More importantly, if you telnet to news.server.com it is exactly the same as telnet to cnn.com.


0
GizaAuthor Commented:
Thanks for the help guys
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.