By karimmaassen
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:
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.