ddclient
- Read more about ddclient
- Log in to post comments
debconf-set-selections <<\EOF
ddclient ddclient/password: (password omitted)
ddclient ddclient/server: members.dyndns.org
ddclient ddclient/protocol: dyndns2
ddclient ddclient/username: user1
ddclient ddclient/names: myname.dyndns.org
ddclient ddclient/interface: web
ddclient ddclient/service: www.dyndns.com
EOF
# install
apt-get install -y ddclient
# disable demon mode
sed -i 's|run_daemon="true"|run_daemon="false"|g' /etc/default/ddclient
# create cron entry
cat < /etc/cron.hourly/ddclient
#!/bin/sh
HOST=YOUR_HOST.dyndns.org
IP_DNS=\$(ping \${HOST} -c 1 | grep P