DigitalOcean + CloudFlare

If you’re using DigitalOcean which I very much recommend if you want a cheap and reliable VPS provider. You should also start using CloudFlare for DNS. Cloudflare DNS is free with tons of customizations, they recently added “Universal SSL” which give you a free SSL certificates for your domains/subdomains.

Anyway I use DigitalOcean quite extensively and constantly add/remove Droplets when trying out new things. The only issue is that I want to be able to find them quickly after they’re created so I wrote a tiny tool called droptoflare, it uses the API’s of these services and make sure all Droplets are created and updated as A records in Cloudflare.

$ gem install droptoflare

$ droptoflare
Found 2 Droplets checking IP's against 3 CF records
Updating test.jhaals.se from 178.62.20.1 to 178.62.20.198
Updated 1 record(s)

$ droptoflare
Found 2 Droplets checking IP's against 3 CF records
Updated 0 record(s)