HOWTO implement ddclient
From RedWall
Summary
I'm going to assume you have Redwall installed and have at least booted once and gone through the initial setup of the host. This document works for Redwall in both 0.5.4d and the 0.5.5-devel4 release. Some type of dynamic DNS client may be included in future releases which will negate most of the manual copying involved in bolting on ddclient now.
Getting Started
This setup is based on the package called "ddclient", rev 3.6.5, and according to that package's README, it should work with the following dynamic DNS services:
- DynDNS.org - http://www.dyndns.org
- Hammernode - http://www.hn.org
- Zoneedit - http://www.zoneedit.com
- EasyDNS - http://www.easydns.com
- NameCheap? - http://www.namecheap.com
Be sure to go through the provided READMEs in the ddclient distribution and customise the config file as required. The config file included in the ddclient-redwall.tgz file is for the DynDNS service. If you use another of the supported services, the ddclient.conf file will have to be modified as such.
Putting the files in /etc
The three files which ddclient needs are the ddclient perl script itself, the ddclient.conf file, and the init script.
- Place your configured ddclient.conf file in /etc - set the file to be owned by root and set the rights to 600.
- Place the ddclient perl script in /etc as well, chown it to root.root and chmod it to 700
- Place the init script (which has been changed from the default to run the ddclient script itself from /etc instead of /usr/sbin) in /etc/rc.d/init.d
I have left the init file chown'd to root.root and chmod'd to 755
Edit the /etc/redwall/features.conf file and add the following three lines at the bottom of the Networking section:
ddclient_start=yes ddclient_desc="Dynamic DNS Client for DHCP interfaces" ddclient_category="Networking"
So long as your ddclient.conf file is OK, and you have written a new copy of the config to your config media via:
save-config
a reboot of the firewall should bring up your DHCP interfaces and update your dynamic DNS service accordingly. If you don't wish to reboot, you should be able to simply do a:
service ddclient start|stop|restart|status
from the command-line.
The ddclient script itself is only ~80k, so everything should fit on your boot media, even if it's a floppy. The client writes a cache file: /etc/ddclient.cache once the script is running as a daemon.
That's it!
The ddclient package homepage is at: http://ddclient.sf.net/ and as of December 9, 2004 is at v3.6.5 v3.6.5 of the ddclient package and some of the example Redwall config scripts can be downloaded via:

