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

I am currently setting up two web servers for a client on Amazon AWS (EC2). Both are up, secure and functioning (one is in Singapore and one is in North America) and everything is great. However, as much as I know about programming and server management, I'm completely useless when it comes to DNS. I need to have the domain setup so the user is directed to the nearest server (i.e. client in Asia --> Singapore Server, client in North America --> US Server). How would I accomplish this?

Also, I attempted to search for an answer on Google, but as I am mostly self-taught, I don't really know what the exact terminology is for this!

Thanks in advance for your assistance.

NOTE: Right now the domain (say, is pointing to a single server via A Record in the zone file.

share|improve this question
Can't Route 53 do this? – Michael Hampton May 5 '13 at 3:40
up vote 2 down vote accepted

I agree with Michael Hampton.

Route 53 has something called Latency Based Routing:

If you want to do it yourself I think the options are split DNS:

or anycast routing:

What is "anycast" and how is it helpful?

but as Cloudfare says: (ignoring their suspect use of the term anycasted)

It is not easy to setup a true Anycasted network. It requires that you own your own hardware, build direct relationships with your upstream carriers, and tune your networking routes to ensure traffic doesn't "flap" between multiple locations.

i.e. unless Amazon offers an anycast option on EC2, you won't be able to use that there.

Route 53 LBR sounds like what you're looking for.

share|improve this answer
Great. And, thanks for the extra information on Split-Horizon and Anycast, useful to know. – CRK May 6 '13 at 2:34

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.