'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:
# ddclient -foreground -forceFAILED: 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.confprotocol=dyndns2use=if, if=eno1server=api.dynu.comlogin=<myusnername>password=<mypassword>test.sub.newtonnet.co.ukAnd here is the verbose output of the command:
# ddclient -foreground -force -verboseINFO: forcing update of test.sub.newtonnet.co.uk.INFO: setting IP address to 192.168.1.20 for test.sub.newtonnet.co.ukUPDATE: updating test.sub.newtonnet.co.ukCONNECT: api.dynu.comCONNECTED: using HTTPSENDING: GET /nic/update?system=dyndns&hostname=test.sub.newtonnet.co.uk&myip=192.168.1.20 HTTP/1.0SENDING: Host: api.dynu.comSENDING: Authorization: Basic <base64 encoding of <myusername>:<mypassword>>SENDING: User-Agent: ddclient/3.8.2SENDING: Connection: closeSENDING: RECEIVE: HTTP/1.1 200 OKRECEIVE: Date: Sun, 01 May 2016 5:3:39 GMTRECEIVE: Server: Dynu Web ServerRECEIVE: X-Powered-By: Dynu Dynamic DNS ServiceRECEIVE: Content-Length: 7RECEIVE: Content-Type: text/htmlRECEIVE: RECEIVE: badauthFAILED: 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:
# cat /etc/ddclient.conf# Configuration file for ddclient generated by debconf## /etc/ddclient.confprotocol=dyndns2use=if, if=eno1server=api.dynu.comlogin=password=sub.newtonnet.co.uk&alias=testFor 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 |
'badauth' error when using ddclient to update 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 -forceFAILED: 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.confprotocol=dyndns2use=if, if=eno1server=api.dynu.comlogin=<myusnername>password=<mypassword>test.sub.newtonnet.co.ukAnd here is the verbose output of the command: # ddclient -foreground -force -verboseINFO: forcing update of test.sub.newtonnet.co.uk.INFO: setting IP address to 192.168.1.20 for test.sub.newtonnet.co.ukUPDATE: updating test.sub.newtonnet.co.ukCONNECT: api.dynu.comCONNECTED: using HTTPSENDING: GET /nic/update?system=dyndns&hostname=test.sub.newtonnet.co.uk&myip=192.168.1.20 HTTP/1.0SENDING: Host: api.dynu.comSENDING: Authorization: Basic <base64 encoding of <myusername>:<mypassword>>SENDING: User-Agent: ddclient/3.8.2SENDING: Connection: closeSENDING: RECEIVE: HTTP/1.1 200 OKRECEIVE: Date: Sun, 01 May 2016 5:3:39 GMTRECEIVE: Server: Dynu Web ServerRECEIVE: X-Powered-By: Dynu Dynamic DNS ServiceRECEIVE: Content-Length: 7RECEIVE: Content-Type: text/htmlRECEIVE: RECEIVE: badauthFAILED: 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 |
timothytw Joined: 5/2/2002 |
'badauth' error when using ddclient to update 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# Configuration file for ddclient generated by debconf## /etc/ddclient.confprotocol=dyndns2use=if, if=eno1server=api.dynu.comlogin=password=sub.newtonnet.co.uk&alias=testFor more information, you can refer to the DDClient config. |
It is currently Tuesday, November 12, 2024 6:05 PM US Mountain Standard Time
Tuesday, November 12, 2024 6:05 PM