Simple CDN/GEO setup with PowerDNS

Leave a Reply

Comment as a guest.

  1. Hey,

    I’ve tried installing this and it’s returning some funny results, it’s as if the IP tables are outdated.
    For example when I look up my geo dns address here, the results tend to change and do not match the country at all 90% of the time.

    Have you been experiencing anything like this?


  2. Victor,

    Unfortunately, yes, and I’ve added a note about it in the post. The IP address that will be checked for the location, is not the IP of the user, but the IP of the DNS server that the user is using.

    So, for example, if you use the public Google DNS servers ( /, the DNS GEO lookup will return US, since the Google DNS servers are located in the US.

    If you use the DNS servers of your internet provider, then it would normally be ok, since the location of your internet provider matches your location more closely.

    But you are right, it’s not a full-proof solution.

    1. Yeah I thought there was something strange happening.

      Anyway, do you have any ideas if it would be possible to store the geo maps in a MySQL database?

      1. Currently, the geodns backend cannot use MySQL for the mapping, it loads all data into memory. This would require a change in the geodns backend itself.

        I also updated the post adding a config change (cache-ttl & query-cache-ttl).

  3. Hello,

    Can you please be kind and tell me what /etc/powerdns/geo-maps should contain?
    I do n’t have it and I don’t know what it should contain.

    Thank you very much,

Read Next

Sliding Sidebar