FAILED: updating boredom.gotdns.com: badauth: Bad authorization (username or password)
- Category: 電腦相關
- Last Updated: Friday, 11 March 2016 16:31
- Published: Monday, 04 January 2016 09:42
- Written by sam
If you use dyndns dns service and receive the mail like this
FAILED: updating boredom.gotdns.com: badauth: Bad authorization (username or password)
And you check your config is right, no mater what os, like debian or windows.
Use the command to test ddclient config,
root@myla:~# ddclient -daemon=0 -debug -verbose -noquiet
At the last output you will see
FAILED: updating stansync.gotdns.com: badauth: Bad authorization (username or password)
First, make sure the name and password is correct, then restart
root@boredom:/etc/ddclient# ./ddclient
root@boredom:/etc/ddclient#tail -f /var/log/syslog The 'ip' = is empty...... Jan 3 16:37:35 boredom ddclient[2716]: WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = '' Jan 3 16:37:35 boredom ddclient[2716]: WARNING: file /var/cache/ddclient/ddclient.cache, line 4: Invalid Value for keyword 'ip' = ''
So, we switch to manual mode, to rm the file
rm /var/cache/ddclient/ddclient.cache
Restart root@boredom:/etc/ddclient# ./ddclient
Still error
root@boredom:/etc/ddclient# cat /var/cache/ddclient/ddclient.cache ## ddclient-3.8.3 ## last updated at Sun Jan 3 17:23:05 2016 (1451812985) atime=0,backupmx=0,custom=0,host=boredom.gotdns.com,ip=,mtime=0,mx=,script=/nic/update,static=0,status=,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 boredom.gotdns.com atime=0,backupmx=0,custom=0,host=stansync.gotdns.com,ip=,mtime=0,mx=,script=/nic/update,static=0,status=noconnect,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 stansync.gotdns.com
ip column still empty, on this occasion, we try another way...... fill in your ip on it.
root@boredom:/etc/ddclient# cat /var/cache/ddclient/ddclient.cache ## ddclient-3.8.3 ## last updated at Sun Jan 3 17:23:05 2016 (1451812985) atime=0,backupmx=0,custom=0,host=boredom.gotdns.com,ip=1.169.68.45,mtime=0,mx=,script=/nic/update,static=0,status=,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 boredom.gotdns.com atime=0,backupmx=0,custom=0,host=stansync.gotdns.com,ip=1.169.68.45,mtime=0,mx=,script=/nic/update,static=0,status=noconnect,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=30 stansync.gotdns.com
And restart ddclient, ddclient get back to normal. Maybe......