Golang based tool to maintain Cloudflare Dynamic DNS for your sites.
Go to file
jtom38 156778729e
continuous-integration/drone/push Build is passing Details
Merge pull request 'image will now boot' (#1) from features/fix-docker into main
Reviewed-on: #1
2023-06-18 13:39:42 -07:00
.drone.yml fixed ci image 2023-06-18 13:35:40 -07:00
.gitignore initial build 2022-08-17 16:58:45 +00:00
Dockerfile image will now boot 2023-06-18 13:34:10 -07:00
README.md initial build 2022-08-17 16:58:45 +00:00
cloudflare.go sending now a patch request to update the IP 2022-08-19 21:35:44 +00:00
config.go initial build 2022-08-17 16:58:45 +00:00
cron.go initial build 2022-08-17 16:58:45 +00:00
docker-compose.yaml initial build 2022-08-17 16:58:45 +00:00
go.mod initial build 2022-08-17 16:58:45 +00:00
go.sum initial build 2022-08-17 16:58:45 +00:00
main.go initial build 2022-08-17 16:58:45 +00:00

README.md

cloudflare-ddns

Golang based tool to maintain Cloudflare Dynamic DNS for your sites. Run this locally or as a Docker image.

When the application starts, it will run every 15 minutes and check your defined hosts and compare the IP Address listed. If they dont match, it will be updated to refect the public IP address of the server its running from.

This does not have any UI elements so you need to check the logs to se how its going.

Usage

# docker-compose.yaml
version: "3"
    
services:
  app:
    image: ghcr.io/jtom38/cloudflare-ddns:master
    container_name: cfddns
    environment:
      EMAIL: "yourcloudflareemailaddress"
      API_TOKEN: "cloudflare-api-key"
      DOMAIN: "exampledomain.com"
      HOSTS: "example1,example2,www"

Credit

The original post that gave me this idea can be found here. This was written in PowerShell and thought I could improve on it with Go and Docker.