____________________________________________________________ How to install ddclient (DynDNS Updater) on Raspberry Pi ____________________________________________________________ # by WA8KIM / kim@kim125.com / EchoLink: WA8KIM-R / WiRES-X: Rm#21149 / Last updated 08/24/2015. # http://www.wa8kim.com/rpi.html # Best viewed in Notepad with Word Wrap OFF/UNCHECKED and in full screen Download the latest version of this file at: http://www.wa8kim.com/files/(RPi)%20Install%20-%20ddclient.txt 1. Download the SSL libraries and the ddclient software sudo apt-get update sudo apt-get install libio-socket-ssl-perl sudo apt-get install ddclient # The program will run a setup config routine. Simply enter your dyndns login information. 2. (Optional) Update the config file sudo nano /etc/ddclient.conf # See example config files below 3. Set your RPi to auto start ddclient. The file rc.local is RPi's version of autoexec.bat # Add the following before the 'exit 0' line: # (Optional) Change the '=600' to =(seconds). Example: =600 would update every 10 minutes. sudo nano /etc/rc.local ----------------------------------------------------------------------------- echo Starting ddclient . . . sudo ddclient -daemon=600 exit 0 ----------------------------------------------------------------------------- __________________________________ EXAMPLE #1: Small Config File __________________________________ ----------------------------------------------------------------------------- # Configuration file for ddclient generated by debconf # # /etc/ddclient.conf #update every x seconds daemon=600 # write log to /var/log/syslog syslog=yes # use SSL encryption for update requests ssl=yes protocol=dyndns2 use=web, web=checkip.dyndns.com, web-skip='IP Address' server=members.dyndns.org login=; password='' # password in quotes ----------------------------------------------------------------------------- _________________________________ EXAMPLE #2: Full Config File _________________________________ ----------------------------------------------------------------------------- daemon=600 # check every 600 seconds syslog=yes # log update msgs to syslog mail=root # mail all msgs to root mail-failure=root # mail failed update msgs to root pid=/var/run/ddclient.pid # record PID in file. cache=/tmp/ddclient.cache # Cache file ### Select one of these options to determine your IP address ## via hardware interface (if you don't have a router/firewall) #use=if, if=eth0 ## via our CheckIP server #use=web, web=checkip.dyndns.com/, web-skip='IP Address' ## from the status page for a linksys router/firewall #use=linksys, fw=linksys, fw-login=admin, fw-password=admin ## from a FW status page #fw-login=admin, fw-password=XXXXXX #use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' ## Enter your Dyn username and password here #login=your-login # your Dyn username #password=your-password # your Dyn password ## This section requires no changes unless you need to set a default proxy server ## or you need to bypass your proxy server (because it interferes with the updates) protocol=dyndns2 # default protocol server=members.dyndns.org # default server #server=members.dyndns.org:8245 # default server (bypassing proxies) #proxy=fasthttp.sympatico.ca:80 # default proxy ## Default options for Dynamic/Static DNS Hosts #mx= # default MX host (leave undefined by default) #backupmx=NO # MX host is primary MX? (leave undefined by default) wildcard=YES # add wildcard CNAME? ## Dynamic DNS hosts go here #your-dynamic-host.dyndns.org,another-dynamic-host.dyndns.org ## Static DNS hosts go here #static=yes, your-static-host.dyndns.org,another-static-host.dyndns.org ## Dyn Standard DNS hosts go here #custom=yes, your-domain.top-level,your-other-domain.top-level ----------------------------------------------------------------------------- Links: https://hexaju.wordpress.com/2013/03/20/raspberry-pi-as-dyndns-client-with-ssl/ http://dyn.com/apps/updater-linux/ddclient/ http://sourceforge.net/projects/ddclient/ -------------------- REVISION HISTORY -------------------- 2015-08-24 Updated Download Link 2015-03-05 File Created