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!

Keep email in cPanel, but redirect website to outside IP

Discussion in 'Bind/DNS/Nameserver' started by jimjoe, Jan 8, 2019.

  1. jimjoe

    jimjoe Well-Known Member

    Joined:
    Jan 31, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    306
    I have an account where I want to keep the email in my whm, but redirect the website to an outside IP.

    I'm not sure exactly what to change but would this work?
    - Change A record for domain.com. to the new IP
    - Change CNAME for www to the new IP
    - Change A record for ftp to the new IP

    But do I need to change other things related to mail to keep mail with my whm?

    Like after the changes above will mail accidentally go to the new site since the record for mail is still
    - mail CNAME domain.com. (but I've changed domain.com. to the outside IP)

    What about domain.com. MX going to domain.com. Should this be changed to something else to keep email - since the A record for domain.com. now goes to the outside IP.

    Anything else I need to change?

    Thanks!!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @jimjoe,

    You'd simply change the "A" record for "domain.tld" to the IP address of the server you want it pointed to. You won't need to change the WWW CNAME entry because by default it points to "domain.tld" (which will point to the new IP). You can choose to update the "A" record for "ftp" if you want it to resolve to the remote server as well.

    Additionally, to ensure email remains pointed to the cPanel server, create a new "A" record for "email" to the cPanel server's IP address and then update the "mail" CNAME to "email.domain.tld". Then, use "email.domain.tld" as the host for the MX entry.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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