The server and protocol field in the ddclient.conf file are static and unchangeable from the web interface. When you enable the DynDNS entry in ASG web admin, it generates the file and then launches the ddclient process. My change intercepts the config file AFTER it's generated, but BEFORE the ddclient process is launched.
The script responsible for launching the process is (and the one we're editing):
/var/mdw/scripts/dyndns
I added the following command to the above script:
sed -i "s?server=members.dyndns.org?server=dynupdate.no-ip.com/nic/update?g;s?protocol=dyndns2?protocol=noip?g" $CONFIG
So that the following section looks like this:
do_start() {
getpid
if [ -z "$PID" ]; then
sed -i "s?server=members.dyndns.org?server=dynupdate.no-ip.com/nic/update?g;s?protocol=dyndns2?protocol=noip?g" $CONFIG
$DAEMON -file $CONFIG || error "start failed"
else
error "already running (PID=$PID)"
fi
rm -f $NOSELFM
}
This modifies the config file so that it works with no-ip.com. If you want to change it to work with other providers I would suggest you work with a ddclient config file and manually invoke it until you find the parameters you need. After that it should be a pretty simple process of changing the sed command to match your needed settings.
"ddclient --help" is VERY helpful in determining what settings are needed with which provider. Run that from the command line and take a peek at what options are available...
This thread was automatically locked due to age.