The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Domain Name pointing to another hosting company

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

  1. jarodlwk

    jarodlwk Active Member

    Joined:
    Sep 24, 2006
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    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:

    domain-me.com. cname domain-others.com.

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

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    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
     
  3. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    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 dyndns.com 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' !"
     
Loading...

Share This Page