I am not sure if I ever experienced this bug but I do know that I don't like
running servers on my workstation or laptop unless I need them and when I need
them so the first think I usually do and that I did in this case was to disable
the daemon-mode and look for a work-around. After poking around in the
documentation I noticed Torstens suggestion in the README to use
/etc/dhclient-exit-hooks which on my Debian with dhcp3-client is
/etc/dhcp3/dhclient-exit-hooks.d/ddclient and that the dhcp3-client puts the
new IP address in the variable, $new_ip_address. I'm not sure if checking for
the $reason is necessary but the result works like a charm.
Here is the working script:
=======================================================
!/bin/sh
## update the DNS server unless the IP address is a private address
## that may be used as an internal LAN address. This may be true if
## other interfaces are assigned private addresses from internal
## DHCP server.
if [ $reason="BOUND" -a -n $new_ip_address ]; then
echo "updating with $new_ip_address";
case "$new_ip_address" in
10.*) ;;
172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*) ;;
192.168.*) ;;
*)
logger -t dhcpcd IP address changed to $new_ip_address
ddclient -daemon=0 -syslog -use=ip -ip=$new_ip_address >/dev/null 2>&1
;;
esac
fi
==================================
Debian 4.0 Unstable
Linux nacholibre 2.6.18-4-686 #1 SMP Wed Feb 21 16:06:54 UTC 2007 i686 GNU/Linux
Package: ddclient
uname -a
Version: 3.7.0-3
Package: dhcp3-client
Architecture: i386
Source: dhcp3
Version: 3.0.4-13
Package: resolvconf
Version: 1.37
===================================
Hope this helps someone.
Justin Vander Ziel
zielot at gmail dot com
____________________________________________________________________________________
Don't get soaked. Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather