'badauth' error when usin...
'badauth' error when using ddclient to update
- Home
- Control Panel
- Community Forum
- Services
- Dynamic DNS Service
- 'badauth' error when using ddclient to update
- Community Forum
- 'badauth' error when using ddclient to update
Topic: 'badauth' error when using ddclient to update
Hi,
I really want to become a fully-fledged dynu.com member as everything I've seen so far seems perfect - apart from the fact that I've failed at the first hurdle!
Having set up a test domain (sub.newtonnet.co.uk), all delegated properly to ns[1-5].dynu.com and with a manually-configured resource record of test.sub.newtonnet.co.uk all resolving I cannot seem to update it with ddclient:
Here is my config (credentials obfuscated):
And here is the verbose output of the command:
I have confirmed that the username and password are correct (have also tried with/without a separate update password) and that the base64 encoding of <myusername>:<mypassword> being sent is also correct.
Any ideas? It is very frustrating to have fallen at the first hurdle as I really want to succeed with this!
Regards,
Mathew
I really want to become a fully-fledged dynu.com member as everything I've seen so far seems perfect - apart from the fact that I've failed at the first hurdle!
Having set up a test domain (sub.newtonnet.co.uk), all delegated properly to ns[1-5].dynu.com and with a manually-configured resource record of test.sub.newtonnet.co.uk all resolving I cannot seem to update it with ddclient:
# ddclient -foreground -force
FAILED: updating test.sub.newtonnet.co.uk: badauth: Bad authorization (username or password)
Here is my config (credentials obfuscated):
# cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=dyndns2
use=if, if=eno1
server=api.dynu.com
login=<myusnername>
password=<mypassword>
test.sub.newtonnet.co.uk
And here is the verbose output of the command:
# ddclient -foreground -force -verbose
INFO: forcing update of test.sub.newtonnet.co.uk.
INFO: setting IP address to 192.168.1.20 for test.sub.newtonnet.co.uk
UPDATE: updating test.sub.newtonnet.co.uk
CONNECT: api.dynu.com
CONNECTED: using HTTP
SENDING: GET /nic/update?system=dyndns&hostname=test.sub.newtonnet.co.uk&myip=192.168.1.20 HTTP/1.0
SENDING: Host: api.dynu.com
SENDING: Authorization: Basic <base64 encoding of <myusername>:<mypassword>>
SENDING: User-Agent: ddclient/3.8.2
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Sun, 01 May 2016 5:3:39 GMT
RECEIVE: Server: Dynu Web Server
RECEIVE: X-Powered-By: Dynu Dynamic DNS Service
RECEIVE: Content-Length: 7
RECEIVE: Content-Type: text/html
RECEIVE:
RECEIVE: badauth
FAILED: updating test.sub.newtonnet.co.uk: badauth: Bad authorization (username or password)
I have confirmed that the username and password are correct (have also tried with/without a separate update password) and that the base64 encoding of <myusername>:<mypassword> being sent is also correct.
Any ideas? It is very frustrating to have fallen at the first hurdle as I really want to succeed with this!
Regards,
Mathew
Reply with quote | Report
If you have signed up dynamic DNS service for newtonnet.co.uk and added test as alias in the 'Alias' section, you should be using the following code:
For more information, you can refer to the DDClient config.
# cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=dyndns2
use=if, if=eno1
server=api.dynu.com
login=
password=
sub.newtonnet.co.uk&alias=test
For more information, you can refer to the DDClient config.
Reply with quote | Report
Author | Topic: 'badauth' error when using ddclient to update |
---|---|
mjnewton Joined: 3/12/2016 |
![]() Sunday, May 1, 2016 5:09 AM
Hi,
I really want to become a fully-fledged dynu.com member as everything I've seen so far seems perfect - apart from the fact that I've failed at the first hurdle! Having set up a test domain (sub.newtonnet.co.uk), all delegated properly to ns[1-5].dynu.com and with a manually-configured resource record of test.sub.newtonnet.co.uk all resolving I cannot seem to update it with ddclient: # ddclient -foreground -force Here is my config (credentials obfuscated): # cat /etc/ddclient.conf And here is the verbose output of the command: # ddclient -foreground -force -verbose I have confirmed that the username and password are correct (have also tried with/without a separate update password) and that the base64 encoding of <myusername>:<mypassword> being sent is also correct. Any ideas? It is very frustrating to have fallen at the first hurdle as I really want to succeed with this! Regards, Mathew |
timothytw Joined: 5/2/2002 |
![]() Wednesday, May 4, 2016 11:29 AM
If you have signed up dynamic DNS service for newtonnet.co.uk and added test as alias in the 'Alias' section, you should be using the following code:
# cat /etc/ddclient.conf For more information, you can refer to the DDClient config. |

Saturday, May 10, 2025 4:36 PM