mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[GH-ISSUE #43] match-clients equivalent (or mapping blocks/ip to countries) #182
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @julienmru on GitHub (Sep 16, 2013).
Original GitHub issue: https://github.com/abh/geodns/issues/43
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.
@stutiredboy commented on GitHub (Jul 1, 2015):
mm, MaxMind is not enough.
@abh commented on GitHub (Jul 3, 2015):
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. :-)
@julienmru commented on GitHub (Jul 4, 2015):
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 :)
@abh commented on GitHub (Jul 4, 2015):
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.