IP address not updating
OpenDNS is working fine until the IP address changes. I have ddclient installed. My ddclient config is:
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=no
##
## OpenDNS.com account-configuration
##
protocol=dyndns2
use=web, web=myip.dnsomatic.com
ssl=no
server=updates.opendns.com
login=xxxxxxx
password=‘xxxxxx’
I've run other diagnostics with these results:
https://updates.dnsomatic.com/nic/update?hostname=home
good 67.2.38.231
https://updates.opendns.com/nic/update?hostname=home
good 67.2.38.231
nslookup -type=txt debug.opendns.com
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
debug.opendns.com text = "server m31.lax"
debug.opendns.com text = "flags 20 0 8050 39500007E00400014C3"
debug.opendns.com text = "originid 134258011"
debug.opendns.com text = "actype 2"
debug.opendns.com text = "bundle 10913113"
debug.opendns.com text = "source 67.2.38.231:43427"
nslookup -type=txt debug.opendns.com. 208.67.220.220
Server: 208.67.220.220
Address: 208.67.220.220#53
Non-authoritative answer:
debug.opendns.com text = "server m27.lax"
debug.opendns.com text = "flags 20 0 70 7950800000000000000"
debug.opendns.com text = "originid 0"
debug.opendns.com text = "actype 0"
debug.opendns.com text = "source 67.2.85.223:40510"
Authoritative answers can be found from:
ddclient -daemon=0 -debug -verbose -noquiet
=== opt ====
opt{cache} : <undefined>
opt{cmd} : <undefined>
opt{cmd-skip} : <undefined>
opt{daemon} : 0
opt{debug} : 1
opt{exec} : <undefined>
opt{facility} : <undefined>
opt{file} : <undefined>
opt{force} : <undefined>
opt{foreground} : <undefined>
opt{fw} : <undefined>
opt{fw-login} : <undefined>
opt{fw-password} : <undefined>
opt{fw-skip} : <undefined>
opt{geturl} : <undefined>
opt{help} : <undefined>
opt{host} : <undefined>
opt{if} : <undefined>
opt{if-skip} : <undefined>
opt{ip} : <undefined>
opt{login} : <undefined>
opt{mail} : <undefined>
opt{mail-failure} : <undefined>
opt{max-interval} : 2160000
opt{min-error-interval} : 300
opt{min-interval} : 30
opt{options} : <undefined>
opt{password} : <undefined>
opt{pid} : <undefined>
opt{postscript} : <undefined>
opt{priority} : <undefined>
opt{protocol} : <undefined>
opt{proxy} : <undefined>
opt{query} : <undefined>
opt{quiet} : 0
opt{retry} : <undefined>
opt{server} : <undefined>
opt{ssl} : <undefined>
opt{syslog} : <undefined>
opt{test} : <undefined>
opt{timeout} : <undefined>
opt{use} : <undefined>
opt{verbose} : 1
opt{web} : <undefined>
opt{web-skip} : <undefined>
=== globals ====
globals{daemon} : 60
globals{debug} : 1
globals{login} : xxxx
globals{mail} : root
globals{mail-failure} : root
globals{password} : ‘xxx’
globals{pid} : /var/run/ddclient.pid
globals{protocol} : dyndns2
globals{quiet} : 0
globals{server} : updates.opendns.com
globals{ssl} : 0
globals{syslog} : 1
globals{use} : web
globals{verbose} : 1
globals{web} : myip.dnsomatic.com
=== config ====
=== cache ====
cache{all.dnsomatic.com}{atime} : 0
cache{all.dnsomatic.com}{backupmx} : 0
cache{all.dnsomatic.com}{custom} : 0
cache{all.dnsomatic.com}{host} : all.dnsomatic.com
cache{all.dnsomatic.com}{mtime} : 0
cache{all.dnsomatic.com}{mx} :
cache{all.dnsomatic.com}{script} : /nic/update
cache{all.dnsomatic.com}{static} : 0
cache{all.dnsomatic.com}{status} : noconnect
cache{all.dnsomatic.com}{warned-min-error-interval} : 1519689244
cache{all.dnsomatic.com}{warned-min-interval} : 0
cache{all.dnsomatic.com}{wildcard} : 0
cache{all.dnsomatic.com}{wtime} : 30
cache{home}{atime} : 0
cache{home}{backupmx} : 0
cache{home}{custom} : 0
cache{home}{host} : home
cache{home}{mtime} : 0
cache{home}{mx} :
cache{home}{script} : /nic/update
cache{home}{static} : 0
cache{home}{status} : noconnect
cache{home}{warned-min-error-interval} : 1519687926
cache{home}{warned-min-interval} : 0
cache{home}{wildcard} : 0
cache{home}{wtime} : 30
cache{lo_nuestro}{atime} : 0
cache{lo_nuestro}{backupmx} : 0
cache{lo_nuestro}{custom} : 0
cache{lo_nuestro}{host} : lo_nuestro
cache{lo_nuestro}{mtime} : 0
cache{lo_nuestro}{mx} :
cache{lo_nuestro}{script} : /nic/update
cache{lo_nuestro}{static} : 0
cache{lo_nuestro}{status} :
cache{lo_nuestro}{warned-min-error-interval} : 0
cache{lo_nuestro}{warned-min-interval} : 0
cache{lo_nuestro}{wildcard} : 0
cache{lo_nuestro}{wtime} : 30
cache{nameserver}{atime} : 0
cache{nameserver}{backupmx} : 0
cache{nameserver}{custom} : 0
cache{nameserver}{host} : nameserver
cache{nameserver}{mtime} : 0
cache{nameserver}{mx} :
cache{nameserver}{script} : /nic/update
cache{nameserver}{static} : 0
cache{nameserver}{status} :
cache{nameserver}{warned-min-error-interval} : 0
cache{nameserver}{warned-min-interval} : 0
cache{nameserver}{wildcard} : 0
cache{nameserver}{wtime} : 30
My opendns homepage looks like this:
All this seems to look like there are no errors, However, ithe ip address is never updated.
If I change the ddclient.conf to add:
all.dnsomatic.com
I get these errors:
ddclient -daemon=0 -debug -verbose -noquiet
WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
truncated results here
DEBUG: get_ip: using web, myip.dnsomatic.com reports 67.2.6.72
WARNING: skipping update of all.dnsomatic.com from <nothing> to 67.2.6.72.
WARNING: last updated <never> but last attempt on Tue Feb 27 05:53:29 2018 failed.
WARNING: Wait at least 5 minutes between update attempts.
Can't exec "sendmail": No such file or directory at /usr/sbin/ddclient line 1465.
ddclient: cannot execute command | sendmail -oi root.
https://updates.dnsomatic.com/nic/update?hostname=home
bash: https://updates.dnsomatic.com/nic/update?hostname=home: No such file or directory
nslookup -type=txt debug.opendns.com
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
debug.opendns.com text = "server m47.lax"
debug.opendns.com text = "flags 20 0 70 7950800000000000000"
debug.opendns.com text = "originid 0"
debug.opendns.com text = "actype 0"
debug.opendns.com text = "source 67.2.6.72:37292"
Authoritative answers can be found from:
Any help would be appreciated.
-
The main problem is "ssl=no". Because OpenDNS (updates.opendns.com) only accepts updates via HTTPS, it must be "ssl=yes".
If HTTPS (SSL) is not supported by your ddclient, you can also update through DNS-O-Matic with HTTP. Your config file shows that you decided to directly update OpenDNS, not through DNS-O-Matic. I believe you must update through DNS-O-Matic if using ddclient.
See also https://support.opendns.com/hc/en-us/articles/227987727
Please sign in to leave a comment.
Comments
1 comment