Hi Ingo,

Per http://permalink.gmane.org/gmane.network.dns.ddclient.user/17, it seems like you are the author of the multiple IP support for ddclient, so I am writing to you to ask you about a specific line of code in your patch that apparently is causing problems for me.

My setup used to work before ddclient 3.8.0, with your multiple IP support patch, was released. Now ddclient won't update the DNS entry because it thinks that the new IP address (specified via CLI options) is the same as the cached IP address. Here are some additional details:

I am calling ddclient like this:

ddclient -debug -verbose -daemon=0 -syslog -use=ip -ip=192.168.1.1

When I run this command I get in the output:

SUCCESS:  myhost.dyndns.org: skipped: IP address was already set to a.b.c.d

where a.b.c.d is *different* from 192.168.1.1, and is actually what I have in the cache file for myhost.dyndns.org.

The line from your patch that I can't explain is this one (from update_nics() ):

+           local $opt{$use} = $config{$h}{$use} if $config{$h}{$use};

For the way I am invoking ddclient, this will change $opt{'ip'} from 192.168.1.1 to a.b.c.d (because $config{'myhost.dyndns.org'}{'ip'} is a.b.c.d).

The consequence is that from this point on, ddclient will believe that the new IP address is a.b.c.d instead of what I specified via the command line (192.168.1.1).

I know it's been a while since you wrote this code, but do you know why you wrote the above line of code? I personally can't see a reason for overwriting $opt{$use} with whatever is in the %config hash.

This issue is affected other users, and so far nobody has been able to figure out why things don't work. Here's the Debian bug report for this issue:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527848

And it looks like this guy also ran into the same issue:

http://sourceforge.net/projects/ddclient/forums/forum/399428/topic/3158864

I also tried using "-use if" and "-if <my network interface>" but that didn't work either. In that case something is overwriting "-use if" with the internal equivalent of "-use ip", but I haven't investigated this issue any further.

Any ideas?

Cheers,

Eloy Paris.-




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to