Fbarajas

Well-Known Member
Jul 15, 2004
65
5
158
Playa del Carmen, Mexico
Hi! Is it possible to have the website (with and without www) on an external site, and have the mail (and DNS zone) on my WHM/CPanel server? If so, how should I configure the DNS zone? Any link to some example? Thanks!
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
463
438
Finland
cPanel Access Level
Root Administrator
Hi! Is it possible to have the website (with and without www) on an external site, and have the mail (and DNS zone) on my WHM/CPanel server? If so, how should I configure the DNS zone? Any link to some example? Thanks!
Set your domain's A record to point to the external site, if www record is CNEME (i.e. www.yourdoman.com. IN CNAME yourdomain.com) you don't need to change that.
That's all.

EDIT:
forgot this:
If your MX record points to yourdomain.com, you must create record (if it doesn't exist):
mail.yourdomain.com. IN A <YOUR SERVER IP>
and then change MX record:
yourdomain.com IN MX 0 mail.yourdomain.com.
 
Last edited:
  • Like
Reactions: cPRex

mitcheettyywyw

Registered
Mar 19, 2023
1
0
0
Austrailia
cPanel Access Level
Website Owner
Hi! Is it possible to have the website (with and without www) on an external site, and have the mail (and DNS zone) on my WHM/CPanel server? If so, how should I configure the DNS zone? Any link to some example? Thanks!
Yes, it is possible to have your website hosted on an external site while having your mail and DNS zone hosted on your WHM/CPanel server. To configure the DNS zone, you will need to make the necessary changes to the DNS records on your server.

Here are the steps to configure the DNS zone:

  1. Log in to your WHM/CPanel server and go to the DNS Zone Editor.
  2. Add an "A" record for your website's domain name and point it to the IP address of your external hosting server.
  3. Add a "MX" record for your mail server and point it to the hostname of your WHM/CPanel server.
  4. Add a "TXT" record for your SPF (Sender Policy Framework) to prevent email spoofing and phishing attacks.
  5. If you want to redirect your website from the non-www version to the www version or vice versa, you can add a "CNAME" record for the non-preferred version and point it to the preferred version.