Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Domain Name pointing to another hosting company

Discussion in 'General Discussion' started by jarodlwk, Jun 18, 2010.

  1. jarodlwk

    jarodlwk Active Member

    Sep 24, 2006
    Likes Received:
    Trophy Points:
    My customer has their website hosted at another web hosting company. Now they bought a second domain name from me and requested that I point their www to their existing website at the other web hosting company. I have set up the cname as follows: cname

    But when I try to browse it keeps showing Bad Request (Invalid Hostname).
    What am I doing wrong?
  2. vanessa

    vanessa Well-Known Member

    Sep 26, 2006
    Likes Received:
    Trophy Points:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    1) Make sure the domain is registered and is pointed to your nameservers, if you're managing the DNs

    2) In order for the site to work, the other host has to have the domain set up in their webserver config
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Lyttek

    Lyttek Well-Known Member

    Jan 2, 2004
    Likes Received:
    Trophy Points:
    Just to add to what Vanessa said...

    You're partway there. Your cname will redirect people who are trying to hit the domain to the existing server, but all that does is tell them that IP address for 'domain b' is the same as 'domain a', which is fine...

    ... until people arrive at the IP address for 'domain a' and the user's browser says "hey, I'm looking for 'domain b' " at which point the webserver says "I have no idea who you're talking about"... they'll have to change stuff on their end.

    Having said that, there ARE things like 'custom DNS' at that will handle all that for you, as it basically rewrites some things from the end-user's perspective. However, what it does *not* do is make 'domain a' appear to be 'domain b'... which means that they'll get where they need to be, but they might wonder "how did I get here? I wanted to be at 'domain b' !"

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice