Cloudflare CDN – How to Use Without Changing Nameservers on WIX

apache-2.4cdncloudflaredomain-name-system

We have a website on WIX (www.example.com). The domain name and name servers are all on WIX. Using the same domain name we have another website (buy.example.com) which is NOT on WIX. The "A record" of both "WWW" and "BUY" are set on WIX's DNS. Recently we would like to change the name server to Cloudflare(CF) but found that it is not supported. The question is what we can do to utilize the advantages of CF on buy.example.com?

One method come to my mind is to, upon users visiting buy.example.com, redirect immediately the link to buy.example2.com, which uses CF's DNS. The redirection might be done via PHP or Apache settings on the server where the site buy.example.com physically is.

Would this be a feasible workaround that can achieve the goal of using CDN and other CF's features?

Could you please provide us with some clues?

Best Answer

I'm not quite sure if WIX will support this, but technically what you're trying to achieve is to delegate the subdomain zone buy.example.com. to Cloudflare, while keeping your root zone example.com. on WIX.

This seems to be supported by Cloudflare but requires you to a) pay for a business account and b) create the root zone in Cloudflare and then contacting CF Support, so it seems to be a bit of a workaround from CF's side.

Another option is to completely migrate your DNS services to Cloudflare, and then use something WIX calls "pointing" to set up the DNS records in Cloudflare to WIX. This is a lot cleaner approach, and also has the added benefit of being free. Then you can manage all you DNS settings in Cloudflare, which I would imagine does DNS a lot better than WIX.