Answer the question
In order to leave comments, you need to log in
Is it possible to distribute different A-records to clients from different regions?
The task is to redirect users of the Amur region to one web server, and users of the Astrakhan region to another. Where to find subnet bases, you can not prompt, but it is better to suggest how to set it up for yourself? Or is there a similar service?
Answer the question
In order to leave comments, you need to log in
I would make a bunch of NGINX proxy + GeoIP
An example of how this is implemented can be found here
mailman.nginx.org/pipermail/nginx/2008-November/008429.html from Sysoev himself
It will not be easy to do so accurately within the Russian Federation. Some Rostelecom networks or Beeline or MTS can be spread across regions.
You can do it yourself like this
About services was discussed a little here .
If the question is “is it possible”, the answer is “yes, it is possible”.
I once implemented a similar thing with python scripts with PowerDNS.
Well, there is also a Netscaller GNLB cluster, it also seems to be done out of the box and not only issuing the correct A-records.
But seriously, it might be worth thinking about redirecting not A records, but redirecting them to regional domains, for example, based on the client's choice, or the system language.
well, take a dns server, some kind of powerdns or something fashionable, fasten a backend to it on nginx with geoip and it will give different records for different ips.
An article was recently on Habré about this, look for geo dns or geo dns
Is this option suitable?
Multiple DNS servers on different ports.
The geoip base is written to ipset.
iptables redirects to the right port.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question