HOW TO GET A CDN IF YOUR DOMAIN AND HOSTING ARE IN A DIFFERENT LOCATION?
The domain is registered with a Swiss registrar, and hosting is provided by a provider in Russia. For a normal domain-hosting connection to work, you need to change the NS domain names (on the registrar side) from Switzerland to the provider's NS names. Talk like that. Then after NS update (6-12 hours) everything will be merged.
But there is one task - to connect all this to the CloudeFlare CDN, so that the site is with CDN IP addresses, as on the CDN servers. If both the domain and hosting are in the same place, this is not difficult to do, then the "Russian" NS names are simply changed to CDN names. But in my case?
And what, exactly, is the problem?
I have a Mali domain, in Africa, registered in the Netherlands, delegated to the registrar for hosting by an Italian reseller from a British operator. The site lives there, and it opens through Cloudflare. And the pictures are opened from CDN Cloudflare.
At the same time, the Italians have domain mail configured for the Yandex service, whose servers are in Frankfurt, Germany.
Mail is sent via Google SMTP via TLS on port 465 from Yandex. Reception - on 993 port.
The customer of all this is in Ukraine, they generally have Yandex banned there.
All this works not the first year.
Maybe I didn't quite understand your question. At what stage does the problem occur?
Hello. Hosting and domain are not connected in any way. You can immediately install the NS provided by the CloudFlare provider on the domain and specify the hosting IP there.
In general, after ordering and activating the CloudeFlare service, special NS- CloudeFlare will be provided that will need to be installed for the domain in the domain registrar panel. And then, in the DNS domain settings in the CloudeFlare control panel, you need to specify A record with the IP address of the desired server, from where the site should work and activate the proxy (the IP address of the real server will be hidden by CloudeFlare IP addresses)
Domain name service and hosting service are different services.
You can register a domain with one company. Hosting service - in another.
In most cases, the domain name registrar provides NS for editing DNS records.
On the part of the domain name registrar, you can send the domain name by A - record to the IP server of your hosting provider.