June 2018
Intermediate to advanced
368 pages
11h 1m
English
BIND added GeoIP support in Version 9.10; it involves defining separate BIND views based on each geographical area.Take a look at this code block:
options {
geoip-directory "/path/to/geoip/database";
};
acl "redwoodcity" {
geoip country US;
geoip region CA;
geoip city "Redwood City";
/* names, etc., must be quoted if they contain spaces */
};
view "redwoodcity" {
match-clients { redwoodcity; }; zone "isc.org" {
file "locals/db.isc.org"; type master;
};
};
view "default" { zone "isc.org" {
file "nonlocals/db.isc.org"; type master;
};
On its own, you might find it unwieldy to try to implement a public-facing GeoDNS implementation using BIND views—it would necessitate creating ACLs for each geographical region. Enter http://phix.me/geodns/ ...
Read now
Unlock full access