Skip to content

A lightweight Docker image to update cloudflare's DNS record when using a dynamic IP address

Notifications You must be signed in to change notification settings

alexandre-snr/cloudflare_dynip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloudflare_dynip

A lightweight Golang program to update Cloudflare's DNS record when using a dynamic IP address. It is designed to be run in a Docker container and is lightweight (13Mb docker image).

Installation

The first step is to get an API token from Cloudflare:

  1. Go to My Profile/API Tokens
  2. Click Create Token
  3. Use the Edit zone DNS template
  4. In the Zone Resources category, select the domain you want to use
  5. Copy the generated token for later

You can now run cloudflare_dynip using the docker run:

docker run -d -e DOMAIN=example.com -e API_TOKEN=yourkey alexandresnr/cloudflare_dynip:latest

The check will be run every 5 minutes by default but can be changed by modifing the CRON_STRING env variable (example: @every 5m).

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A lightweight Docker image to update cloudflare's DNS record when using a dynamic IP address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published