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.

DNS and pointing a domain to different IP

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

  1. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    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

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    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.

    Code:
    mail      IN A your_server_IP
    domain.com.     IN      MX      0       mail.domain.com.
    
     
Loading...

Share This Page