DynDNS with ddclient#

> sudo apt-get update                               # update repositories
> sudo apt-get install ddclient                     # install
> sudo vi /etc/ddclient.conf                        # config file
> sudo service ddclient restart                     # restart daemon
> sudo rm /var/cache/ddclient/ddclient.cache        # clear IP cache uploaded before (or use -force)
> systemctl status ddclient                         # status check
> journalctl -xeu ddclient                          # log 
> sudo ddclient -query                              # try all common dyndns services
> sudo ddclient -daemon=0 -debug -verbose -noquiet  # start directly with verbose output to analyse

> sudo vi /etc/default/ddclient
> sudo vi /usr/bin/ddclient

With current Raspberry OS (Debian GNU/Linux 12, bookworm) you get ddclient v3.10.0. This could not determine the ipv6 address !
The latest v3.11.2 worked fine, see next.

Install ddclient on your own#

Based on najigram.com
> sudo apt purge ddclient
> sudo apt install libjson-any-perl libdata-validate-ip-perl libio-socket-ssl-perl
> sudo apt install libtool        # this is missing at najigram.com and solves issues if autogen does not work
> wget https://github.com/ddclient/ddclient/archive/refs/tags/v3.11.2.zip
> unzip v3.11.2.zip
> cd ddclient-3.11.2
> sudo ./autogen
> sudo ./configure --prefix=/usr --sysconfdir=/etc/ddclient --localstatedir=/var
> sudo make
> sudo make VERBOSE=1 check
> sudo make install	
> sudp cp sample-etc_systemd.service /etc/systemd/system/ddclient.service

Configure#

Check IPs
> ifconfig
> ip -6 -o addr show dev eth0 scope global

> sudo vi /etc/ddclient/ddclient.conf

Add below "ssl=no":

protocol=dyndns2
#use=if, if=eth0
usev6=ipv6, ipv6=eth0
#use=web, web=checkip.dyndns.org,  web-skip=‘Current IP Address’
verbose=yes
daemon=900
#pid=/var/run/ddclient.pid
#mail-failure=msebel20@gmail.com
server=dynv6.com
login=XUsernameX
password=XPasswordX
<your dyndns server name>

IPv6 Address#

The raspberry may have a random ipv6 to hide target. This can happen with "privacy extensions" enabled via dhcpcd (Dynamic Host Configuration Protocol Client Daemon). But this is not enabled by default, check with
> service dhcpcd status
If "Unit dhcpcd.service could not be found." then the random IP is set from Fritz!BOx,
see Heimnetz > Netzwerk > YourDevice > Heimnetz > "IPv6-GUA-Temporary"
The official IPv6-GUA (Global Unicast-Address) is another one.