abh / geodns

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

Will the geoip database be automatically reloaded every day? #116

Closed myallpic closed 2 years ago

myallpic commented 5 years ago

I want to know if I need to manually restart geodns every day to load the new geoip database?

abh commented 5 years ago

Only on restart if I remember right.

Patches for this are welcome.

Ideally have a go routine check every few minutes if the file changed and then reload the files.

I think some of the data structures will need a mutex added (and a benchmark to make sure it doesn’t t significantly change the performance).