T
T
Terehoff2013-06-18 13:53:54
Domain Name System
Terehoff, 2013-06-18 13:53:54

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

6 answer(s)
C
cat_crash, 2013-06-18
@cat_crash

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

S
Sergey, 2013-06-18
@bondbig

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 .

A
andreysmind, 2013-06-18
@andreysmind

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.

S
stavinsky, 2013-06-18
@stavinsky

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.

P
Puma Thailand, 2013-06-18
@opium

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

I
Ilya Evseev, 2013-06-21
@IlyaEvseev

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 question

Ask a Question

731 491 924 answers to any question