abh / geodns

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

Split all continents in regions #96

Open daknob opened 7 years ago

daknob commented 7 years ago

The United States of America is split in three parts, namely us-west, us-central, and us-east. It could be beneficial to add this support in the continent level for all continents. For example, europe-west can have Portugal, Spain, etc.

I can do this by editing the /countries/regiongroups.go which I think will enable this functionality. Is this feature wanted? Should I implement this and send a Pull Request?

cricsus commented 5 years ago

that'd also require to change the if country != "us" to if country != "us" && region != "europe", I think, right? I'm not sure whether that will work, though, as I never dealt with anything written in golang before