abh / geodns

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

Domain geo record clarification #67

Closed gugansankar closed 9 years ago

gugansankar commented 9 years ago

I'm planning to migrate my dns from pgeodns to this version. But When I look into the sample configuration of ntp , the entries are making me some confusion on geo record.

What is difference between the below record for country Malaysia

3.my , 1.my , 0.my ,2.my from ntppool.org.json

gugansankar commented 9 years ago

Any idea ?

abh commented 9 years ago

Instead of "3", "1", etc think of "www". So if your domain is "example.com" then you make a global/default entry "www" and another "www.my" for users in Malaysia. Does that make sense?

abh commented 9 years ago

Since you are migrating from pgeodns you might also be interested in the geodes-config program that's in the pgeodns repository. It converts the old pgeodns text configuration format to the JSON format:

https://github.com/abh/pgeodns/blob/master/geodns-config

We actually still use this for some of the perl.org data. (!)

gugansankar commented 9 years ago

Thanks for your explanation. I already start using Go-GeoDNS.

abh commented 9 years ago

Very cool. Thank you for following up. :+1: