Giter VIP home page Giter VIP logo

ddclient's Introduction

Important notice This project will be archived, as the cloudflare-dyndns now has all the functionality covered by the scripts here, save checking for IPv6 updates.

ddclient for cloudflare

This ddclient script is the client side https://github.com/1rfsNet/Fritz-Box-Cloudflare-DynDNS. For deploying it, a server endpoint is needed.

It is designed to work as a cronjob.

Setup

For setting up the script, copy the example config and set your configuration.

Alternatively you can configure the script via enviroment variables.

By default the script will source the config file in the same folder as the script as config_cloudflare_dyndns.sh.

Additional config options that can be added to the config file are:

# Cache where the current IPv4/6 address is stored to avoid unnecessary calls to the server.
CACHE_IPv6="${CACHE_IPv6:-$basedir/.cache_IPv6.txt}"
CACHE_IPv4="${CACHE_IPv4:-$basedir/.cache_IPv4.txt}"
# Config file to source
CONFIG_FILE="${CONFIG_FILE:-$basedir/config_cloudflare_dyndns.sh}"

For running the script regulary, setup a cronjob with crontab -e.

Example:

*/5 * * * * /ddclient/cloudflare_dyndns.sh

This will run the script every 5 minutes.

Docker container

You can use the image as a docker container, simply run:

docker run -d -v ./config_cloudflare_dyndns.sh:/config/config.sh ghcr.io/heathcliff26/ddclient:latest

You can configure the delay in minutes between updates with DELAY, the default is 5 minutes. Example for 10 minutes delay:

docker run -d -v ./config_cloudflare_dyndns.sh:/config/config.sh -e DELAY=10 ghcr.io/heathcliff26/ddclient:latest

Additional Variables:

NODE_NAME
BASE_DOMAIN

If both are set and DOMAINS is empty, entrypoint.sh will create the variable by combining both. Used for running the container as a Daemonset in Kubernetes.

Troubleshooting

Make sure the config file is executable.

Other scripts

Other things i have for ddclient stuff:

  1. There are configuration files for the ddclient package against strato under the examples.

  2. The script monitorIPv6.sh can be used to monitor ULA IPv6 addresses. For example with the prefix fd00::.

ddclient's People

Contributors

heathcliff26 avatar renovate[bot] avatar bot-ahsoka[bot] avatar

Watchers

 avatar

ddclient's Issues

Renovate Dashboard ๐Ÿค–

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • docker.io/library/alpine 3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
github-actions
.github/workflows/build-container.yaml
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • docker/setup-qemu-action v3.0.0@68827325e0b33c7199eb31dd4e31fbe9023e06e3
  • docker/setup-buildx-action v3.0.0@f95db51fddba0c2d1ec667646a06c2ce06100226
  • docker/login-action v3.0.0@343f7c4344506bcbf9b4de18042ae17996df046d
  • docker/login-action v3.0.0@343f7c4344506bcbf9b4de18042ae17996df046d
  • docker/metadata-action v5.3.0@31cebacef4805868f9ce9a0cb03ee36c32df2ac4
  • docker/build-push-action v5.1.0@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
.github/workflows/editorconfig-check.yaml
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • mstruebing/editorconfig-checker 2.7.2
.github/workflows/label-check.yaml
  • agilepathway/pull-request-label-checker v1.6.11
.github/workflows/renovate-config-validator.yaml
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • renovate/renovate 37.83.5-slim
  • renovate/renovate 37.83.5-slim
.github/workflows/renovate.yaml
  • tibdex/github-app-token v2.1.0@3beb63f4bd073e61482598c45c71c1019b59b73a
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • renovatebot/github-action v39.2.1@64257ea9bae8d8634eba1d545638c2cab62e69e6
.github/workflows/shellcheck.yaml
  • actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
  • ludeeus/action-shellcheck 2.0.0@00cae500b08a931fb5698e11e79bfbd38e612a38
regex
.github/workflows/editorconfig-check.yaml
  • mstruebing/editorconfig-checker 2.7.2
.github/workflows/label-check.yaml
  • agilepathway/pull-request-label-checker v1.6.11
.github/workflows/renovate-config-validator.yaml
  • renovate/renovate 37.83.5-slim
  • renovate/renovate 37.83.5-slim

Renovate Dashboard ๐Ÿค–

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • alpine 3.18.3
github-actions
.github/workflows/build-container.yaml
  • actions/checkout v3@f43a0e5ff2bd294095638e18286ca9a3d1956744
  • docker/setup-qemu-action v2@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7
  • docker/setup-buildx-action v2@885d1462b80bc1c1c7f0b00334ad271f09369c55
  • docker/login-action v2@465a07811f14bebb1938fbed4728c6a1ff8901fc
  • docker/login-action v2@465a07811f14bebb1938fbed4728c6a1ff8901fc
  • docker/metadata-action v4@818d4b7b91585d195f67373fd9cb0332e31a7175
  • docker/build-push-action v4@2eb1c1961a95fc15694676618e422e8ba1d63825
.github/workflows/cron-scan-image.yaml
  • actions/checkout v3@f43a0e5ff2bd294095638e18286ca9a3d1956744
  • lucacome/docker-image-update-checker v1.2.1@f50d56412b948cfdbb842c5419372681e0db3df1
.github/workflows/shellcheck.yaml
  • actions/checkout v3@f43a0e5ff2bd294095638e18286ca9a3d1956744
  • ludeeus/action-shellcheck 2.0.0@00cae500b08a931fb5698e11e79bfbd38e612a38

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Preset is invalid JSON (github>heathcliff26/ddclient//.github/renovate/customManagers.json5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.