Redirect a subdomain to a different ip address.

Posted on 2006-04-13
Last Modified: 2008-02-26
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 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 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?
Question by:Giza
    LVL 15

    Accepted Solution

    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! ;)
    LVL 6

    Assisted Solution

    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, (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:  TTL: 3600".  Then I have a CName that goes to another machine, for example, "CNAME: news  Points To:  TTL: 3600".

    Now '' goes to my website, but '' goes to CNN.  More importantly, if you telnet to it is exactly the same as telnet to

    LVL 1

    Author Comment

    Thanks for the help guys

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now