Can you update nethserver-ddclient with last ddclient version?

Can you update nethserver-ddclient with last ddclient version:

We are not enough developers to upgrade to the last version of a software, we follow the centos or epel channel, or the new feature must provide a really new mandatory feature

So in short your issue is badly written, you should have started by, I need this and it comes from this version not currently available

Stéphane,

I would like to use ddclient with Cloudflare, but unfortunately, the ddclient that comes with NethServer does not support the later Cloudflare updated their side to work with v4, and v4 only. Here is one of several discussions on Cloudflare’s community board discussing the issue. The current Github version is 3.9.1 here. I would be honored to test it if somebody could spare the time to update the current one, which does not support api v4. Thanks in advance,

Harry

Available I think for centos 8 in epel but not for for centos 7 :expressionless:

http://fr2.rpmfind.net/linux/rpm2html/search.php?query=ddclient

As a workaround you may use nethserver-ddclient with the newer version. It worked in first tests with dynu.com, I don’t have cloudflare to test. If possible try it in a testing environment first as system files are changed.

I assume nethserver-ddclient is already installed.

Install the openfusion repo to get a perl module needed for the new ddclient:

yum -y install http://repo.openfusion.net/centos7-x86_64/openfusion-release-0.7-1.of.el7.noarch.rpm
yum -y install perl-Data-Validate-IP

Disable the 3rd party repos to not disturb future NethServer updates:

signal-event software-repos-save

Get ddclient and extract it:

wget https://github.com/ddclient/ddclient/archive/v3.9.1.tar.gz
tar -xzf v3.9.1.tar.gz

Overwrite the epel client with the new one. A backup is created like /usr/sbin/ddclient.~n~ to be able to easily restore previous versions.

\cp --backup=t ddclient-3.9.1/ddclient /usr/sbin/

Check version (Should be ddclient version 3.9.1):

ddclient -h

Edit /etc/sysconfig/ddclient and add -file /etc/ddclient.conf to the DDCLIENT_OPTIONS. The new ddclient seems to use a different default config file path (/etc/ddclient/ddclient.conf).

DDCLIENT_OPTIONS="-daemon 300 -file /etc/ddclient.conf"

Edit /usr/lib/systemd/system/ddclient.service and comment out the PIDFile. I got errors like Can't open PID file (yet) without this step.

#PIDFile=/var/run/ddclient/ddclient.pid

Reload the service files:

systemctl daemon-reload

Clean the cache for testing (to immediately update IP):

> /var/cache/ddclient/ddclient.cache

(Re)configure a custom ddns provider and check ddclient logs (/var/log/messages)

To update the openfusion perl module:

yum update --enablerepo=of

Watch out for epel updates of ddclient because it will overwrite the new version.

2 Likes

@harry @mrmarkuz maybe tricky the same but simplest

yum install http://fr2.rpmfind.net/linux/epel/8/Everything/x86_64/Packages/d/ddclient-3.9.1-1.el8.noarch.rpm http://repo.openfusion.net/centos7-x86_64/perl-Data-Validate-IP-0.27-1.of.el7.noarch.rpm

the service start, not tested more

https://centos.pkgs.org/7/openfusion-x86_64/perl-Data-Validate-IP-0.27-1.of.el7.noarch.rpm.html
http://fr2.rpmfind.net/linux/RPM/epel/8/x86_64/Packages/d/ddclient-3.9.1-1.el8.noarch.html

1 Like

Thank you for posting :slight_smile:

@stephdl Thank you for posting,