Using the ddclient to sync domain ddns records
Config: for opendns, zoneedit and dnsomatic
sudo cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
use=web, web=myip.dnsomatic.com
server=updates.dnsomatic.com, protocol=dyndns2, login=username@email-address.com, password=’password-you-chose’
all.dnsomatic.com
###domain name
ssl=yes
#Manual https://updates.dnsomatic.com/nic/update
###———-ZoneEdit———–###
use=web, web=checkip.dyndns.org
ssl=yes
protocol=zoneedit1
#server=www.zoneedit.com
server=dynamic.zoneedit.com
login=username
password=’password-you-chose’
domain-name.com
###———-OpenDNS————###
protocol=dyndns2
#use=web, web=myip.dnsomatic.com
ssl=yes
server=updates.opendns.com
login=username
password=’password-you-chose’
domain-name.com
Test ddclient:
sudo ddclient -daemon=0 -noquiet -debug -verbose -force
New configuration that seems to work better:
Update OpendNDS and ZoneEdit every 10 minutes
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
file=/etc/ddclient.conf
syslog=1
debug=1
verbose=1
#daemon=10m
ssl=1
#ZoneEdit
protocol=zoneedit1,
use=if, if=eth0,
server=dynamic.zoneedit.com,
login=username,
password=’password’,
domain_name
#OpenDNS
###———-OpenDNS————###
protocol=dyndns2,
server=updates.opendns.com,
login=username,
password=’password’,
network_name
================================================================
Change the /etc/default/ddclient to update the time frequency to check:
# Configuration for ddclient scripts
# generated from debconf on Tue 11 Jun 15:05:46 AEST 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.
#600 seconds
daemon_interval=”600″
===================================================================
Find the folowing string in the /etc/init.d/ddclient and comment out:
sudo cat /etc/init.d/ddclient | grep interval
###daemon_interval=300