--- ddclient 2010-05-21 20:54:44.548440944 +0900 +++ /usr/sbin/ddclient 2010-05-21 21:24:42.394692616 +0900 @@ -529,6 +529,16 @@ $variables{'service-common-defaults'}, ), }, + 'valuedomain' => { + 'updateable' => undef, + 'update' => \&nic_valuedomain_update, + 'examples' => \&nic_valuedomain_examples, + 'variables' => merge( + { 'server' => setv(T_FQDNP, 1, 0, 1, 'dyn.value-domain.com', undef) }, + { 'login' => setv(T_FQDN , 1, 0, 1, '', undef) }, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -2099,12 +2109,12 @@ } elsif (defined($sub) && &$sub($host)) { $update = 1; - } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) || - ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) || - ($cache{$host}{'mx'} ne $config{$host}{'mx'}) || - ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) { - info("updating %s because host settings have been changed.", $host); - $update = 1; + #} elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) || + # ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) || + # ($cache{$host}{'mx'} ne $config{$host}{'mx'}) || + # ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) { + #info("updating %s because host settings have been changed.", $host); + #$update = 1; } else { success("%s: skipped: IP address was already set to %s.", $host, $ip) @@ -3383,6 +3393,104 @@ failed("updating %s: Invalid reply.", $h); } } +} + + ###################################################################### + +###################################################################### +## nic_valuedomain_examples +###################################################################### +sub nic_valuedomain_examples { + return <