ddclient
ddclient copied to clipboard
ddclient doesn't parse usev4, usev6, or related options per-host
TLDR: It appears that usev4, usev6 and related options like cmdv6 do not parse correctly when configured on a per-host basis.
I'm using 3.10.0_2, and have the following configuration file:
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail-failure=<redacted>
pid=/usr/local/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
protocol=cloudflare
login=<redcated>
password=<redacted>
zone=<redacted>
ssl=yes
usev4=webv4
webv4=api.ipify.org
usev6=webv6
webv6=api64.ipify.org
my.host.one.com
usev6=cmdv6, cmdv6=/root/bin/get_some_ip.sh my.host.two.com
I can see that the usev6 and cmdv6 options do not come through for my.host.two.com. Instead, I get the global values.
Below is the output of /usr/local/bin/ddclient -foreground -v -debug -verbose -noquiet -daemon=0. The use option does come through if you set it per-host, but the usev4, option also does not.
=== config ====
config{my.host.two.com}{atime} : 0
config{my.host.two.com}{backupmx} : 0
config{my.host.two.com}{cacheable} : ARRAY(0x801d15108)
config{my.host.two.com}{cmd} : <undefined>
config{my.host.two.com}{cmd} : <undefined>
config{my.host.two.com}{cmd-skip} :
config{my.host.two.com}{fw} :
config{my.host.two.com}{fw-login} : <undefined>
config{my.host.two.com}{fw-password} :
config{my.host.two.com}{fw-skip} :
config{my.host.two.com}{fw-ssl-validate} : 1
config{my.host.two.com}{host} : my.host.two.com
config{my.host.two.com}{if} : ppp0
config{my.host.two.com}{ip} : <undefined>
config{my.host.two.com}{ipv4} : <undefined>
config{my.host.two.com}{ipv6} : <undefined>
config{my.host.two.com}{login} : <redacted>
config{my.host.two.com}{max-interval} : 2160000
config{my.host.two.com}{min-error-interval} : 300
config{my.host.two.com}{min-interval} : 300
config{my.host.two.com}{mtime} : 0
config{my.host.two.com}{mx} :
config{my.host.two.com}{password} : <redacted>
config{my.host.two.com}{protocol} : cloudflare
config{my.host.two.com}{server} : api.cloudflare.com/client/v4
config{my.host.two.com}{static} : 0
config{my.host.two.com}{status} :
config{my.host.two.com}{status-ipv4} :
config{my.host.two.com}{status-ipv6} :
config{my.host.two.com}{ttl} : 1
config{my.host.two.com}{use} : ip
config{my.host.two.com}{warned-min-error-interval} : 0
config{my.host.two.com}{warned-min-interval} : 0
config{my.host.two.com}{web} : dyndns
config{my.host.two.com}{web-skip} :
config{my.host.two.com}{web-ssl-validate} : 1
config{my.host.two.com}{wildcard} : 0
config{my.host.two.com}{wtime} : 30
config{my.host.two.com}{zone} : <redacted>