geodns icon indicating copy to clipboard operation
geodns copied to clipboard

match-clients equivalent (or mapping blocks/ip to countries)

Open julienmru opened this issue 11 years ago • 4 comments

For developing countries, MaxMind database is unreliable but we can find resolver IP addresses/blocks from relevant ISPs and thus have accurate data thanks to the resolver.

It would be perfect if geodns allowed to manually map addresses/blocks to specific countries, taking priority over what MaxMind returns, more or less what we would do in bind with match-clients.

julienmru avatar Sep 16 '13 19:09 julienmru

mm, MaxMind is not enough.

stutiredboy avatar Jul 01 '15 09:07 stutiredboy

I don't think it'd be right to make a generic geoip facility in geodns. It shouldn't be terribly difficult to write maxmind compatible databases and use those; or if there's another data format GeoDNS should support then I'd be open to that.

Another option is to tell MaxMind -- in my experience they are pretty responsive about updating their data. :-)

abh avatar Jul 03 '15 16:07 abh

Thanks @abh but I do have a valid use case where manually specifying ranges would help: in Mauritius, some operators route traffic to South-East-Asia, and other operators route traffic to Europe. With help of manual ranges, I could have geodns resolve the closest IP for each operator.

I'm not thinking about writing MaxMind compatible database because the ones we have with our subscription shouldn't be overwritten.

Not sure if that makes sense :)

julienmru avatar Jul 04 '15 05:07 julienmru

In v2.5.0 there's support for targeting by IP, but only the specific IP or the /24 network (/48 for IPv6). I believe you specify it with the IP address (instead of the country code) or the first three octets of the IP address. If it's not too many networks you have to override that might work.

abh avatar Jul 04 '15 06:07 abh