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!

DNS and pointing a domain to different IP

Discussion in 'Bind/DNS/Nameserver' started by bmcpanel, Jul 16, 2009.

  1. bmcpanel

    bmcpanel Well-Known Member

    Jun 1, 2002
    Likes Received:
    Trophy Points:
    I have a client who hosts his domain and web site on our cpanel server. He has placed his web site on a different web server with a different IP and wants the dns to point to the site, while keeping the email function on our cpanel server.

    1. The dns at the registrar points to our local cpanel server name servers.
    2. Want to keep the complete function of the site (cpanel, email, etc) on our cpanel server EXCEPT that he wants to forward http requests to the NEW IP on a DIFFERENT SERVER.
    3. Want the URL of the site to show up in the browser address bar, not the IP.

    I tried pointing his dns A record on the server to the new IP, but the email stopped working.

    I will appreciate any suggestions on how this might be possible. I don't think it is possible to point the www through the A record in DNS on the cpanel server while keeping email local, but I may be wrong.
  2. david510

    david510 Well-Known Member

    Aug 22, 2004
    Likes Received:
    Trophy Points:
    You need to do this.

    Make the IN A address as the remote IP, so the webserver of the domain will be the remote IP.

    To make the mailserver of the domain as your server, do the following.
    Edit the MX field as follows.

    mail      IN A your_server_IP     IN      MX      0
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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