OneHost Cloud is a premier Cloudflare partner and we encourage all customers to use Cloudflare for their websites. We have included the Cloudflare plug-in in our Cpanel Hosting.
Customers can choose between Cloudflare CNAME setup or FULL ZONE Setup where you will need to change your domains nameservers to Cloudflare's namservers. When selecting this option and when you create an account via our Cloudflare plugin in Cpanel you will be notified of your Cloudflare generated namservers.
Alternately you may wish to use the CNAME setup where you keep using OneHost Cloud's namservers. This is not reccomended.
Domains using CNAME setup have two limitations:
- The DDOS protection for attacks against DNS infrastructure is only available for the delegated records.
- Cloudflare's security and acceleration benefits are only available on delegated subdomains, such as www.example.com. The root domain, such as example.com, cannot be protected or accelerated via Cloudflare. This is due to DNS RFCs.
To send root domain traffic to Cloudflare, you may add a redirect on your webserver (.htaccess file or similar) to forward traffic to the subdomains proxied by Cloudflare.
Here are some differences between the FULL and CNAME Setup.
When setting up Cloudflare, you have two options of how to add your customers’ domains.
Full DNS setup
Full DNS setup requires an update of the existing DNS provider to Cloudflare's DNS, where Cloudflare becomes your authoritative DNS. This means you will need to update your name servers to the name servers provided by Cloudflare once the domain is added to Cloudflare.
Full DNS setup is currently available through these integrations:
- Host API (Host Partner Full DNS Mode API Instructions)
- cPanel plugin
- WHMCS module
Partial (CNAME) setup
A CNAME setup doesn't need any change of your DNS provider. It simply requires pointing any subdomain to Cloudflare by means of a CNAME record. In order to add www.domain.com to Cloudflare
If current DNS setup:
www.domain.com → A Record to IP address OR www.domain.com CNAME to domain.com
Then, the new DNS setup with Cloudflare will require the following update to the DNS record:
www.domain.com CNAME www.domain.com.cdn.cloudflare.net
If your initial record was an A record, then add the following A record:
cloudflare-resolve-to.www.domain.com → A Record to IP address
If your initial record was a CNAME record, then add the following CNAME record:
cloudflare-resolve-to.www.domain.com CNAME domain.com