Advice needed on best DNS setup with Digital Ocean

June 28, 2014 1.2k views

I am keen to upgrade my droplet from Ubuntu 13.04 to 14.04 and can see building a new droplet and moving my web docs and databases from my old droplet to the new is probably the best way to do this.

My question is what is the most flexible way to setup domains and DNS so switching say 20 domains to a new server is fast and seamless. My domains are currently 'parked' at the registrar so I can forward email addresses at the registrar level (to Gmail addresses), which I like as my droplet doesn't then need a mail server and email is as un-interrupted as possible.

Currently I'd have to build the new droplet, rsync across the data, test it and then go through one by one at the domain registrar and change the IP address to the new droplet and possibly lose data in the window between when I rsync'ed the data to the new server and the DNS changeover taking effect.

Any advice much appreciated..

2 Answers

The easiest way:
Configure http proxy (nginx) on the old droplet.
And to proxy http requests for these 20 domains on a new droplet.
More slowly change to the new IP from domain registrars.

  • I face the exact same issue: I've already built new droplet with Ubuntu 14.04 LTS and now I need to migrate to new place seamlessly (or at least with minutes of downtime, not hours).

    Is there an article on how to set it up? A few options that come to mind:

    • Squid3 proxy?
    • HAProxy setup, where old droplet acts like a front-end and new droplet acts like a back-end?
    • Nginx proxy?

    I haven't done either of these, but if I manage - I'll probably write a blog post about it on

Have another answer? Share your knowledge.