ddclient updates dynamic DNS entries for accounts on a wide range of dynamic DNS services.
Find a file
wimpunk 3ec5dd56c6 Added duckDNS to the README.md
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@177 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2015-03-21 11:58:29 +00:00
release Commiting updated release information 2013-12-26 09:42:35 +00:00
.cvsignore Modified during the release of ddclient-3.8.0 2009-01-27 20:17:52 +00:00
Changelog.old Renamed Changelog to Changelog.old 2015-03-21 10:48:19 +00:00
COPYING Reorganise 2006-05-22 19:37:19 +00:00
COPYRIGHT Reorganise 2006-05-22 19:37:19 +00:00
ddclient Add missing config line for CloudFlare 2015-03-21 10:43:29 +00:00
README.cisco Reorganise 2006-05-22 19:37:19 +00:00
README.md Added duckDNS to the README.md 2015-03-21 11:58:29 +00:00
README.ssl Removed revision information 2014-04-29 17:51:59 +00:00
RELEASENOTE Corrected release note 2014-03-20 19:56:58 +00:00
sample-ddclient-wrapper.sh Added ddclient wrapper script 2008-11-19 21:04:16 +00:00
sample-etc_cron.d_ddclient Reorganise 2006-05-22 19:37:19 +00:00
sample-etc_ddclient.conf Adding support for google domain 2015-01-20 11:57:13 +00:00
sample-etc_dhclient-exit-hooks Reorganise 2006-05-22 19:37:19 +00:00
sample-etc_dhcpc_dhcpcd-eth0.exe Reorganise 2006-05-22 19:37:19 +00:00
sample-etc_ppp_ip-up.local Applied ip-up_run-parts.diff from ubuntu 2011-07-11 20:24:43 +00:00
sample-etc_rc.d_init.d_ddclient see Changelog 2006-06-11 08:30:49 +00:00
sample-etc_rc.d_init.d_ddclient.alpine Added Alpine Linux init script 2014-03-20 20:02:14 +00:00
sample-etc_rc.d_init.d_ddclient.lsb Reorganise 2006-05-22 19:37:19 +00:00
sample-etc_rc.d_init.d_ddclient.redhat Reorganise 2006-05-22 19:37:19 +00:00
sample-etc_rc.d_init.d_ddclient.ubuntu update ubuntu init.d script 2015-03-21 11:51:03 +00:00
TODO Added ddclient wrapper script 2008-11-19 21:04:16 +00:00
UPGRADE Added some release related files 2008-06-13 20:11:07 +00:00

===============================================================================

DDCLIENT v3.8.2

ddclient is a Perl client used to update dynamic DNS entries for accounts on many dynamic DNS services.

===============================================================================

Dynamic DNS services currently supported include:

DynDNS.com  - See http://www.dyndns.com for details on obtaining a free account.
Hammernode  - See http://www.hn.org for details on obtaining a free account.
Zoneedit    - See http://www.zoneedit.com for details.
EasyDNS     - See http://www.easydns.com for details.
NameCheap   - See http://www.namecheap.com for details
ConCont     - See http://www.dydns.za.net for details
DnsPark     - See http://www.dnspark.com for details
DslReports  - See http://www.dslreports.com for details
Sitelutions - See http://www.sitelutions.com for details
Loopia      - See http://www.loopia.se for details
Noip        - See http://www.noip.com/ for details
Freedns     - See http://freedns.afraid.org/ for details
ChangeIP    - See http://www.changeip.com/ for details
dtdns       - See http://www.dtdns.com/ for details
nsupdate    - See nsupdate(1) and ddns-confgen(8) for details
CloudFlare  - See https://www.cloudflare.com/ for details
Google      - See http://www.google.com/domains for details
Duckdns      - See https://duckdns.org/ for details

DDclient now supports many of cable/dsl broadband routers.

Comments, suggestions and requests: use the forums on http://sourceforge.net/projects/ddclient/

The code was originally written by Paul Burry and is now hosted and maintained
through sourceforge.net. Please check out http://ddclient.sf.net


REQUIREMENTS:

  • one or more accounts from one of the dynamic DNS services

  • Perl 5.014 or later (you need the IO::Socket::SSL perl library for ssl-support and JSON::Any perl library for JSON support)

  • Linux or probably any common Unix system


INSTALLATION:

cp ddclient /usr/sbin/
mkdir /etc/ddclient
mkdir /var/cache/ddclient
cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
vi /etc/ddclient/ddclient.conf
-- and change hostnames, logins, and passwords appropriately

## For those using Redhat style rc files and using daemon-mode:
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
## enable automatic startup when booting
## check your distribution
/sbin/chkconfig --add ddclient
## start the first time by hand
/etc/rc.d/init.d/ddclient start

## For those using Alpine style rc files and using daemon-mode:
cp sample-etc_rc.d_init.d_ddclient.alpine /etc/init.d/ddclient
## enable automatic startup when booting
rc-update add ddclient
## make sure you have perl installed 
apk add perl
## start the first time by hand
rc-service ddclient start

## If you are not using daemon-mode, configure cron and dhcp or ppp
## as described below.

TROUBLESHOOTING:

  1. enable debugging and verbose messages. $ ddclient -daemon=0 -debug -verbose -noquiet

  2. Do you need to specify a proxy? If so, just add a proxy=your.isp.proxy to the ddclient.conf file.

  3. Define the IP address of your router with fw=xxx.xxx.xxx.xxx in /etc/ddclient/ddclient.conf and then try $ ddclient -daemon=0 -query to see if the router status web page can be understood.

  4. Need support for another router/firewall? Define the router status page yourself with: fw=url-to-your-router's-status-page fw-skip=any-string-preceding-your-IP-address

    ddclient does something like this to provide builtin support for common routers. For example, the Linksys routers could have been added with:

    fw=192.168.1.1/Status.htm fw-skip=WAN.*?IP Address

    OR Send me the output from: $ ddclient -geturl {fw-ip-status-url} [-login login [-password password]] and I'll add it to the next release!

    ie. for my fw/router I used: $ ddclient -geturl 192.168.1.254/status.htm

  5. Some broadband routers require the use of a password when ddclient accesses its status page to determine the router's WAN IP address. If this is the case for your router, add fw-login=your-router-login fw-password=your-router-password to the beginning of your ddclient.conf file. Note that some routers use either 'root' or 'admin' as their login while some others accept anything.


USING DDCLIENT WITH ppp

If you are using a ppp connection, you can easily update your DynDNS entry with each connection, with:

## configure pppd to update DynDNS with each connection
cp sample-etc_ppp_ip-up.local /etc/ppp/ip-up.local

Alternatively, you may just configure ddclient to operate as a daemon and monitor your ppp interface.


USING DDCLIENT WITH cron

If you have not configured ddclient to use daemon-mode, you'll need to configure cron to force an update once a month so that the dns entry will not become stale.

## configure cron to force an update twice a month
cp sample-etc_cron.d_ddclient /etc/cron.d/ddclient
vi /etc/cron.d/ddclient

USING DDCLIENT WITH dhcpcd-1.3.17

If you are using dhcpcd-1.3.17 or thereabouts, you can easily update your DynDNS entry automatically every time your lease is obtained or renewed by creating an executable file named: /etc/dhcpc/dhcpcd-{your-interface}.exe ie.: cp sample-etc_dhcpc_dhcpcd-eth0.exe /etc/dhcpc/dhcpcd-{your-interface}.exe

In my case, it is named dhcpcd-eth0.exe and contains the lines:

#!/bin/sh
PATH=/usr/sbin:/root/bin:${PATH}
logger -t dhcpcd IP address changed to $1
ddclient -proxy fasthttp.sympatico.ca -wildcard -ip $1 | logger -t ddclient 
exit 0

Other DHCP clients may have another method of calling out to programs for updating DNS entries.

Alternatively, you may just configure ddclient to operate as a daemon and monitor your ethernet interface.


USING DDCLIENT WITH dhclient

If you are using the ISC DHCP client (dhclient), you can update your DynDNS entry automatically every time your lease is obtained or renewed by creating an executable file named: /etc/dhclient-exit-hooks ie.: cp sample-etc_dhclient-exit-hooks /etc/dhclient-exit-hooks

Edit /etc/dhclient-exit-hooks to change any options required.

Alternatively, you may just configure ddclient to operate as a daemon and monitor your ethernet interface.