Created
July 27, 2014 13:09
-
-
Save lihonosov/6b1523df897d66e40a37 to your computer and use it in GitHub Desktop.
Bind GeoDNS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Для популярного сервера BIND существует GeoDNS Patch (http://www.caraytech.com/geodns/). Он позволяет указывать различные записи в зависимости от места положения клиента. В качестве базы геоданных используется Max Mind (https://www.maxmind.com/en/country). | |
| Пример конфигурации для различных стран: | |
| view "usa" { | |
| match-clients { country_US; country_CA; country_MX; }; | |
| recursion no; | |
| zone "ruhighload.com" { | |
| type master; | |
| file "pri/ruhighload.usa.db"; | |
| }; | |
| }; | |
| view "other" { | |
| match-clients { any; }; | |
| recursion no; | |
| zone "ruhighload.com" { | |
| type master; | |
| file "pri/ruhighload.other.db"; | |
| }; | |
| }; | |
| # Разные записи для одного домена с использованием GeoDNS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment