I did the migration and successful. I moved by site previously hosted in Godaddy to now in Digital ocean. Site is running all fine.
One new problem. My emails are hosted with godaddy. Now My emails have stopped working. How to solve this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
@JiteshShah
If I understand correctly, you’re wanting to use DigitalOcean to host your actual website, but use the e-mail services provided by GoDaddy and the shared hosting plan that your website was previously on, correct?
If so, when doing a lookup on the domain
businesslabs.org
(the domain you’ve noted above), I see a few issues right off.1). It looks like you have two
A
entries, both of which point tobusinesslabs.org
to the same IP. You need to remove one of those entries.2). The lookup doesn’t report any valid
MX
entries, and without them, you’re not going to receive e-mail.3). The lookup doesn’t report any valid
CNAME
entries, and these are used by yourMX
entries, and without them, e-mail won’t resolve to the notedmail.businesslabs.org
.So to get things in working order…
Let’s start fresh!
Whatever entries you have, whether
A
,MX
,CNAME
or other, delete them from within CloudFlare (not GoDaddy) and let’s start from square one by adding ourA
entries first.Adding A Entries
NOTE: I’ll be using
DROPLET_IP
andGODADDY_IP
as we move along. Simply replaceDROPLET_IP
with your DigitalOcean Droplet IP Address and forGODADDY_IP
, you may need to get in touch with their support team. It all depends on whether the IP shows up in cPanel for you.Most all DNS providers, including CloudFlare, accept
@
as a reference to your domain, which is why I’ve used it in the above. This simplifies things quite a bit.The
www
entry ensures that requests for bothbusinesslabs.org
andwww.businesslabs.org
will resolve equally.The
mail
entry is what I was referencing above. SinceMX
entries do not resolve to IP’s, a name must be available, so we’re settingmail
, which will referencemail.businesslabs.org
from here on.Adding MX Entries
Now we need to add an
MX
entry formail.businesslabs.org
Here we’re setting a Priority of 0 for
mail.businesslabs.org
which is standard since you’re not (to my knowledge) using multiple mail servers. This represents the highest priority.If you have four input fields, you may need to use
@
to reference your domain once again, in which case yourMX
entry would look like this:Adding Other Entries
At this point, we have proper
A
andMX
records. You may have aCNAME
setup forwww
– it’s not needed as we instead setwww
as anA
entry (which is perfectly valid and actually more appropriate).From here, if you need to add additional entries, simply add them as you did the above. When it comes to sub-domains, they should be setup as
A
entries. The only time you may need to use aCNAME
entry is if GoDaddy requires it formail
. This is the default setup with cPanel, though I’m not really sure why as it simply complicates DNS resolution.For example, if you’ve setup a
A
entry for your domain using:and a
CNAME
entry using:When
mail
is accessed, the routing looks something like this:Whereas with with an
A
entry, the routing is cut down to:Are you wanting to keep your emails hosted with godaddy? If so, then you need to set the MX records of your domain name back to the godaddy mx. If your domain dns is controlled through godaddy, do it at the godaddy control panel. If you changed your domain name server to your own server, then set the mx at your own server to point to godaddy or else change the name server back to godaddy and control the dns settings there.
First: When I was first hosting my site and emails with godaddy i used cloudflare for CDN and so my DNS i can see in Cloudflare.
Second: I have migrated my site to digitalocean but i want to use the same godaddy shared linux cpanel to use my email currently.
Third: What should be dns setting i need to update in cloudflare to get my emails back to track?