Skip to content

Creates DNS records for your DigitalOcean Droplets in Cloudflare

Notifications You must be signed in to change notification settings

jhaals/droptoflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#droptoflare travis droptoflare adds your DigitalOcean Droplets as A records in Cloudflare. droptoflare will update DNS records if you re-create a Droplet with the same name.

Installation

gem install droptoflare

Create ~/.droptoflare.yaml and add the following

domain: example.com
email: [email protected]
cf_token: Cloudflare t0ken
do_token: DigitalOcean t0ken'

Run!

$ 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)

Todo

  • more tests
  • better error handling
  • ability to set TTL (120s at the moment)

About

Creates DNS records for your DigitalOcean Droplets in Cloudflare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages