This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Easy workaround for ddclient to use providers other then dyndns. (DynDNS tab)

I'm a longtime user of No-Ip.com and have found them to be reliable for my needs.  I wanted ASG to take over the update tasks so I could remove the client from my home server,  but ASG only supports the dyndns provider.  Hopefully in the future they'll add additional providers, but in the meantime here's what I've found...

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.
Parents Reply Children
No Data