Created
June 4, 2019 09:05
-
-
Save mgraupner/8b4dff388a308263ab03d8ff96599e90 to your computer and use it in GitHub Desktop.
Cloudflare as DynDNS (DynamicDNS) Provider in 2019 for Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for ddclient scripts | |
# generated from debconf on Mon Jun 3 17:01:32 UTC 2019 | |
# | |
# /etc/default/ddclient | |
# Set to "true" if ddclient should be run every time DHCP client ('dhclient' | |
# from package isc-dhcp-client) updates the systems IP address. | |
run_dhclient="false" | |
# Set to "true" if ddclient should be run every time a new ppp connection is | |
# established. This might be useful, if you are using dial-on-demand. | |
run_ipup="false" | |
# Set to "true" if ddclient should run in daemon mode | |
# If this is changed to true, run_ipup and run_dhclient must be set to false. | |
run_daemon="true" | |
# Set the time interval between the updates of the dynamic DNS name in seconds. | |
# This option only takes effect if the ddclient runs in daemon mode. | |
daemon_interval="600" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for ddclient generated by debconf | |
# | |
# /etc/ddclient/ddclient.conf | |
daemon=1800 | |
protocol=cloudflare | |
use=web | |
server=api.cloudflare.com/client/v4 | |
ssl=yes | |
login=*e-mail address for cloudflare login* | |
password=*public cloudflare API Key* | |
zone=*root domain e.g. xyz.com* | |
*dynDNS name: server_home.xyz.com* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following steps were needed: | |
Add your DynDNS Domain as an A-Record to Cloudflare: server_home.xyz.com -> 1.2.3.245 (The IP address does not matter, just use your own.) | |
apt-get install ddclient libdata-validate-ip-perl | |
wget the newest ddclient version (Ver. 3.9.0 as of this writing) | |
unpack | |
replace the file in /usr/sbin/ddclient with the new binary | |
use the two config files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment