We've got a website visited by users mainly in the USA and UK. The site will be run on servers in both these locations.

We would like to use a DNS service to direct users to the nearest server, but can't find any. Does anyone have an recommendations for solutions. A cheap, hosted solution would be preferred as we would rather not run our own DNS servers.


5 Answers 5


Wikipedia use a PowerDNS with Geobackend to serve clients from the closest server.

I have a similar service running for my http://static.natalian.org site. I want it in order to serve large HTML5 video files efficiently between my servers.

To set it up is quite easy. I setup A records like so:


Then for static.natalian.org I set a CNAME to the third party GEO PowerDNS service running at natalian.geo.blitzed.org.

The rules for how it maps onto country codes can be found from:

   rsync -v rsync://rsync.blitzed.org/geo-maps/natalian .

To scale further to Asia, I would rent a server in Korea and I would rsync the data and setup an Apache vhost to serve static.natalian.org from the new Korean IP, say Then I would simply add:


Here are two reasonably priced DNS service providers that offer Geo targeting: http://edgedirector.com/ and http://www.geoscaling.com/

The second one seems more inviting and better organized. I have not tested either of these services.

  • I tested edgedirector and it works very well Nov 6, 2012 at 9:42

Here is a forum topic on it. Many providers are mentioned.



How accurate do you need it to be? If you can live with a little coding of your own, more-or-less accurate location resolution, and giving a redirect response to browsers that hit the "wrong" server first time around, then you could use the freely available "CeoLiteCountry" database to handle it yourself. I've got it on a list of ThingsToConsider for one of my planned projects.

It is in the Debian repositories (http://packages.debian.org/lenny-backports/geoip-database) which implies it is in fact properly "free" in many regards (though you might want to check the to make sure the license(s) are compatible with your project's codebase and direction).

Using a good managed DNS-based solution would be easier though, if the cost for a reliable enough provider is within your budget, but this might be a viable alternative.


UltraDNS and Akamai can provide this service, however they are very expensive. I settled on using DNSMadeEasy which have DNS servers on both coasts, as well as europe.

  • 1
    DNSMadeEasy is also expensive... GeoDns for 1 record with them ends up costing over $700 / year.
    – user109204
    Feb 2, 2012 at 3:28

Not the answer you're looking for? Browse other questions tagged .