GitXplorerGitXplorer
z

cloudflare-dyndns

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5be079df1808cddf3cd9ff9409804181a04e5840

Added some descriptions to readme file

zzoellert committed 4 years ago
Unverified
615128d7b65e031e8a67cf85b398b96d94b3d061

Changed response text

zzoellert committed 4 years ago
Unverified
d1174a4b1a4244dd0198ee41f9accb4994888a25

Added dyndns configuration settings for Securepoint UTM and FritzBox to readme file

zzoellert committed 4 years ago
Unverified
413ef137b638be80766cbeb098653406004a1dd0

Fixed docker run script in readme file

zzoellert committed 4 years ago
Unverified
e60e041df55458e35eab0d8242bd4ca282f2648d

Added dockerfile

zzoellert committed 4 years ago
Unverified
a9d1ad7e3be437fedff0200b10e7b66b14d378bb

Initial commit

zzoellert committed 4 years ago

README

The README file for this repository.

Simple DYNDNS Server for Cloudflare

A simple DynDNS server with an HTTP endpoint for FritzBox router, Securepoint UTM and more to update your private ip-address in your Cloudflare zone. Currently, only IPv4 addresses are supported.

Environment variables

Environment Variable Description Example-Value
APP_MODE Application / log level release \ debug
APP_PORT Webserver port 8080
CLOUDFLARE_API_KEY Global API Key (Cloudflare User Settings) 9e1a9405beaa42158ba179c0eb637651
CLOUDFLARE_ZONE Name of the zone / domain your-domain.de
CLOUDFLARE_MAIL Email address used for your Cloudflare user account mail@your-domain.de
UPDATE_PASSWORD Password used to authorize the update request with the username "update" test123456#

Setup

go build

Use a reverse proxy for ssl encryption!

Docker Setup using Docker-Hub

Run Docker container:

docker run --name <container-name> -d \
    --restart=always \
    -p 127.0.0.1:8080:8080 \
    -e APP_MODE="release" \
    -e APP_PORT="8080" \
    -e CLOUDFLARE_API_KEY="<your-cloudflare-key>" \
    -e CLOUDFLARE_ZONE="<your-cloudflare-zone>" \
    -e CLOUDFLARE_MAIL="<your-cloudflare-email>" \
    -e UPDATE_PASSWORD="<password for update user>" \
    zoellert/cloudflare-dyndns:latest

Manual Docker Setup

Clone Project.

Build Docker container: docker build -t cloudflare-dyndns:0.1 .

Run Docker container:

docker run --name <container-name> -d \
    --restart=always \
    -p 127.0.0.1:8080:8080 \
    -e APP_MODE="release" \
    -e APP_PORT="8080" \
    -e CLOUDFLARE_API_KEY="<your-cloudflare-key>" \
    -e CLOUDFLARE_ZONE="<your-cloudflare-zone>" \
    -e CLOUDFLARE_MAIL="<your-cloudflare-email>" \
    -e UPDATE_PASSWORD="<password for update user>" \
    cloudflare-dyndns:0.1

Use a reverse proxy for ssl encryption!

Router Setup

Securepoint

Setting Description Example
Hostname Choose a subdomain from your Cloudflare zone home.your-domain.de
Username Username for authentication update
Password password defined in UPDATE_PASSWORD environment variable test123456#
Server Address to your instance of this dyndns server dyndns-server.your-domain.de

FritzBox

Setting Description Example
URL Address to your instance of this dyndns server https://dnydns-server.your-domain.de/nic/update?hostname=<domain>&myip=<ipaddr>
Domainname Choose a subdomain from your Cloudflare zone home.your-domain.de
Username Username for authentication update
Password password defined in UPDATE_PASSWORD environment variable test123456#