Question

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

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.