-ip=1.2.3.4 command line option ignored

Help
Patrick
2010-05-11
2013-01-14
  • Patrick
    Patrick
    2010-05-11

    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.

    ddclient.conf
    ddclient.cache
    ddclient -daemon=0 -debug -verbose -noquiet -use=ip -ip=1.2.3.4

    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}{$_};
    }
        }

     
  • wimpunk
    wimpunk
    2010-05-12

    I took a closer look and it really doesn't work anymore.  We will try to fix it asap.