DNS hosting allows you to direct users' traffic depending on their location.
For better search use the following links:
Traffic distribution between CDN providers depending on the end-user region
Traffic distribution between IP-addresses depending on the end-user region
Traffic distribution between CDN providers depending on the end-user region
Let's consider the case when you need to deliver traffic from the Netherlands via our CDN, and traffic from other regions via another CDN provider.
1. Create a zone with the necessary domain to configure its balancing.
2. Create a CNAME record for balancing traffic from the Netherlands: in the Name field specify the desired region for a subdomain in the "subdomain.region" format.
! Due to the existing limitation on creating DNS records with the same name as for the CNAME record, we do not recommend you to create CNAME-record for the main domain. The domain with such settings can work incorrectly as there are SOA and NS records already created for it. Please, use subdomain.
3. In the Content field specify the zone or domain where requests from the region will be sent.
Note! There should be a dot (.) at the end of the Content field.
4. Click Create.
5. Create a CNAME record for all other regions. To do this, specify the subdomain name in the Name field. In the Content field, write a domain or a zone where requests from regions will be sent.
Note! There should be a dot (.) at the end of the record Content.
6. Click Create.
Traffic distribution between IP-addresses depending on the end-user region
To distribute traffic between multiple IP-addresses depending on the user's country:
1. Create a zone with the necessary domain to configure its balancing.
2. Add A/AAAA records with IP-addresses linked to the user's geolocation. To do this, enter the desired region in the Name field, and enter the desired IP-address for this region in the Content field.
For example, for a user from Asia, domain Example.com should have a 192.0.3.3 IP-address. Then the record configuration will be the following:
Important! The name asia.Example.com will also be available when you access it directly.
3. Then add an A/AAAA record with the default IP-address. To do this, leave the Name field empty, and specify the default IP-address for the domain Example.com in the Content field.
4. Done! After applying these settings, the domain Example.com will have a192.0.3.3 IP-address for users from Asia, and for all other users it will correspond to 192.0.2.2.
5. Add as many regions and IP-addresses as necessary.