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!

Redirect subdomain to sever

Discussion in 'General Discussion' started by aevenard, Oct 16, 2012.

  1. aevenard

    aevenard Registered

    Joined:
    Oct 8, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I'm having an issue trying to redirect a subdomain from my main server (server1) to an other server (server2). What I did is adding a A entry in my domain.com DNS zone in WHM on the server1 :

    sub.domain.com A ipserver2

    I also added a new account in the server2 named sub.domain.com but it's not working.
    When I ping sub.domain.com, it gives me the server1 ip address.

    Does anyone know how to solve that?

    Thanks
     
  2. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    91
    cPanel Access Level:
    Root Administrator
    You need to allow some time for the dns propagation. After that your subdomain will start resolving. You can use following command to check if you have added record correctly.

    dig @ns1.yourdomain.com sub.domain.com +short

    It should show IP of your server2.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. aevenard

    aevenard Registered

    Joined:
    Oct 8, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for your answer.
    dig @ns1.yourdomain.com sub.domain.com +short show the good ip address but the ping doesn't

    I added this record 3 days ago..

    Thank you.
     
Loading...

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