Jeidnx / fritzbox-cloudflare-ddns

Simple DynDNS server for use with FritzBox and Cloudflare written in bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please use ddns-server instead.

fritzbox-cloudflare-ddns

Dynamic DNS with FritzBox and Cloudflare

Easy solution to set up a local Dynamic DNS Server if you are running a Fritzbox and using Cloudflare.

This is pieced together from Sherver and Cloudflare Dynamic DNS IP Updater.

How to

On your server:

# Clone the repo
git clone https://github.com/jeidnx/fritzbox-cloudflare-ddns /opt/fritzbox-cloudflare-ddns
# Copy the template
cp update-template.sh update.sh
# Insert your Credentials and Domains to update in update.sh
vim update.sh
# Start the server (alternatively start as systemD service, see further below for info)
./sherver.sh

To enable DynDNS in your FritzBox

  • Make sure that your server has a static internal IP Address
  • Find the DynDNS Settings page
  • Select Custom for DynDNS-Provider
  • Enter these values, replace 10.10.10.10 with your servers local IP
    • Update-Url: 10.10.10.10:8080/update?ip=<ipaddr>
    • Domain: it
    • Username: doesn't
    • Password: matter

Requirements

  • bash to run the script
  • socat to run the server.
  • curl to make the api requests.

SystemD Service

# Create user to run the server
useradd dyndns
# Copy dyndns.service to systemd folder
cp dyndns.service /etc/systemd/system/dyndns.service
# Reload systemd Daemon
systemctl daemon-reload
# Start the service
systemctl start dyndns

License

Everything is under MIT License.

About

Simple DynDNS server for use with FritzBox and Cloudflare written in bash

License:MIT License


Languages

Language:Shell 98.4%Language:Dockerfile 1.6%