The following forum message was posted by at http://sourceforge.net/projects/ddclient/forums/forum/399428/topic/3705015:
When I try to update my dyndns host supplying the ip on the command line it doesnt get updated and ddclient produces some illogical output.
root@example:~# ddclient -daemon=0 -verbose -use=ip -ip=1.2.3.4
SUCCESS: example.dyndns.org: skipped: IP address was already set to 209.85.229.104.
[url=http://sprunge.us/baeP]ddclient.conf[/url]
[url=http://sprunge.us/MKPH]ddclient.cache[/url]
[url=http://sprunge.us/EcKQ]ddclient -daemon=0 -debug -verbose -noquiet -use=ip -ip=1.2.3.4[/url]
Or am I missing something ? :-) Is it possible to supply the ip to use on the command line ? Judging from the documentation, I think it should! I can make it work with a simple change in the script, but I don\'t know why the script was is written the way it is now so I hope somebody with some deeper insigh to the script could tell.
Simple Fix:
--- /usr/sbin/ddclient 2010-02-22 19:08:57.000000000 +0100
+++ ddclient 2010-05-11 10:55:41.000000000 +0200
@@ -847,7 +847,7 @@
foreach my $h (keys %cache) {
if (exists $config{$h}) {
- foreach (qw(atime mtime wtime ip status)) {
+ foreach (qw(atime mtime wtime status)) {
$config{$h}{$_} = $cache{$h}{$_} if exists $cache{$h}{$_};
}
}
|