Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Let's say:

  • I have a website written in English and shown on
  • The website is on a US server now (based on cPanel/WHM) at the IP address
  • I can manage the DNS of using a control panel to add/modify any records: A, MX, etc. (Currently, all A records are obviously pointing to

I would like that when a person in the US visits the website is shown by the server in US, but when a person in Europe visits, the website is shown by a server in the UK.

  1. Is this possible using the same domain (with no sub domain redirections such as and by simply adding/modifying DNS records?

  2. If (1) is YES, how do I set up the DNS records of in order to accomplish this?

  3. If (1) is NO, are there other solutions available to accomplish this, and what are these solutions?

share|improve this question
up vote 2 down vote accepted

You can use Anycast DNS to achive what you want.

That way people living in the USA will get the reply from an USA DNS server there you can have your USA IP addres, who lives in Europe will get the response from an European DNS server where you can have the IP address of your European server.

You need an Anycast DNS provider to use it. For example

share|improve this answer
You can get nearly the same result if you use a DNS server what answers differently based on the source IP, for example: in this case the only problem is that the first time the client visits the server have to get the IP from the far DNS server, but after it caches the reply the following communication with the nearby server will be fast. – Stone Dec 11 '13 at 12:01

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.