abh / geodns

DNS server with per-client targeted responses
Apache License 2.0
1.37k stars 191 forks source link

adding GeoIP2 support #113

Closed cricsus closed 4 years ago

cricsus commented 5 years ago

MaxMind is no more publishing .dat binaries, but .mmdb and .csv instead. The reader for GeoIP2 can be found on Oschwald's GeoIP2 Golang.

Alternatively, the CPP Code for converting .CSV to .DAT may work either (Didn't for me).

It'd be great if you switched over to supporting the newest version of GeoIP databases without to have to convert them oneself before.

EDIT: Apparently it looks for MMDB instead of DAT as I figured later. Please update the docs :)

abh commented 4 years ago

thank you @cricsus