Re: [Ddclient-support] multiple IP support for ddclient
Brought to you by:
supersandro2000,
wimpunk
From: Raman G. <roc...@fa...> - 2008-10-16 23:50:19
|
Ingo Schwarze <ischwarze@...> writes: > Technically, the main changes are: > > * Allow use= and its sub-options if=, web=, fw=, and cmd= > to be set seperately for each hosts line. > * Store the formerly global variable $ip in the $config{$h} hash > such that it can be different for different host names. > * Call the post-script with multiple IP arguments when required. > > Below, you find a patch against ddclient-3.7.3 implementing the new > feature. Of course, we would be glad if this feature enhancement > could be integrated into the SourceForge distribution. Suggestions > from the community regarding the code are welcome, and i shall try > to keep our version as close to the official one as possible. > Forking ddclient is certainly not intended. Thanks Ingo, I applied this patch locally and it works well for me. Note however that currently it does a lookup per-host rather than per-use. No big deal, but definitely adds some unnecessary overhead. To illustrate: [... basic settings here...] server=members.dyndns.org protocol=dyndns2 login=XXX password=XXX use=web, web=checkip1.service.com \ XXX.dyndns.org,YYY.dyndns.org use=web, web=checkip2.service.com \ XXX.homeunix.org,YYY.homeunix.org The above config file ends up hitting the checkip1.service.com website two times, and checkip2.service.com two times, instead of just once each. Cheers, Raman Gupta |