Report this

What is the reason for this report?

Can I have two droplets located at the US and Europe that resolve the same domain?

Posted on March 10, 2014

Can I have two droplets located at the US and Europe that resolve the same domain? That would be very helpful for two main reasons:

  1. It would help load balance my traffic.
  2. It would effectively kill downtime when rebooting my web apps.

Is this possible?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The easy way to do this would be with something called “Round Robin DNS Load Balancing” Basically in your DNS setup, you have two entries for your website that point to both IP addresses. <br> <br>Example in BIND DNS config file: <br> <br>www.website.com. IN A 192.168.0.1 #US Address <br>www.website.com. IN A 192.168.0.2 # European Address <br> <br> <br>When someone accesses your website, the DNS server will respond with one of the two IPs. They will then use that IP for however long the TTL is (usually 4-6 hours). <br> <br>It won’t matter where in the world they are. If one of your servers goes down, half the people will get a website, and the other half will not. <br> <br>There are other options of load balancing, HAProxy, nginx, etc, but those are fairly complex setups.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.