Skip to content

Instantly share code, notes, and snippets.

@unsalted
Last active August 14, 2021 14:50
Show Gist options
  • Save unsalted/33ef746146fc5977cef672a88f29cf47 to your computer and use it in GitHub Desktop.
Save unsalted/33ef746146fc5977cef672a88f29cf47 to your computer and use it in GitHub Desktop.
ddclient rhel install -- latest for cloudflare

ddclient rhel install

1. Install dependencies

sudo yum install perl perl-Net-IP perl-Net-DNS perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-File-Temp patchutils.x86_64

2. Get latest package (sourceforge)

wget https://sourceforge.net/projects/ddclient/files/ddclient/ddclient-3.8.3/ddclient-3.8.3.tar.gz/download

3. Extract package

tar -xvf download cd ddclient-3.8.3/

4. Manual install

sudo mkdir /etc/ddclient
sudo mkdir /var/cache/ddclient
sudo cp ddclient /usr/local/sbin
sudo cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
sudo cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
sudo chkconfig --add ddclient
cd ..
rm download

5. Configure

sudo nano etc/ddclient/ddclient.conf

config setttings to change as follows

# uncomment/set (daemon=600)*

daemon=600        # check every 300 seconds
syslog=yes        # log update msgs to syslog
#mail=root        # mail all msgs to root
#mail-failure=root      # mail failed update msgs to root
pid=/var/run/ddclient.pid   # record PID in file.
ssl=yes         # use ssl-support.  Works with
# configure/uncomment ip check
use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
# configure cloudflare
protocol=cloudflare,        \
zone=example.com,            \
server=www.cloudflare.com,  \
[email protected],     \
password=api_key             \
sub.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment