0
votes

I've a domain let's call it example.com that is hosted in a shared server with cPanel (the DNS of the domain are pointing to the shared server). In this server I've some subdomains and my email accounts. I want to point only my root domain to a Netlify using their custom domain. Like if a person access example.com it redirects to Netlify but if a person sends an email it redirects to the shared server or if access the subdomains also go to the shared server.

Is that possible to configure via DNS Zone Editor in cPanel?

Big thanks.

1

1 Answers

3
votes

Short Answer: YES

Longer answer:

Netlify has documented custom domain setup rather well, since it is probably the most asked about feature.

As of this writing you can setup an apex (bare, naked) domain (example.com) to their load balancer IP (104.198.14.52) using an A record. If possible you could setup an ANAME or ALIAS record if your DNS provider has the option (most don't). When setting up a sub-domain (example: www), use a CNAME record and point it to the your-site-name-here.netlify.com value.

enter image description here

You can read about the advantages of setting up a sub-domain rather than using the bare domain. There are speed advantages on the CDN.