Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

guys. I'd like to deploy my app on two different servers, located in US and Germany. As I suppose, I need to set up some kind of load balancer, that would deternime from which country my user is, and resolve it to US/Germany server. The general aim is to provide user abitiliy to work with the closest server (CDN is not a solution, 'cause we dont share static content).

Where should I place load balancer that would resolve user to USA/GER severs? In usa/germany? What shold it look like? A usual server with some specific app or what?

Thank you.

share|improve this question
Sounds more like you need GeoLocation DNS.… – Greg Askew Nov 25 '12 at 14:29
up vote 5 down vote accepted

Typically what you're trying to do is done with some form of Geo-aware DNS, which can be done either by patching your nameserver to respond to queries based on the location of the user (or the user's DNS server) requesting the address, or by using "anycast addressing" with BGP to have normal DNS servers in various regions answer queries from those regions with addresses appropriate for that region.

Either of these will only be "mostly accurate" since the user typically doesn't contact your DNS server directly for addresses, instead they use their ISPs name server that makes the request for them, or they use Google's or OpenDNS's servers which are probably nowhere near them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.