docker-ddns icon indicating copy to clipboard operation
docker-ddns copied to clipboard

badauth when trying to use DynDNS API

Open RHuehne opened this issue 3 years ago • 3 comments

Hi There,

The update via Web is working - but actually only over the

http(s)//example.com/update?secret=[SHARED_SECRED]&domain=[HOSTNAME]&addr=[IP] url.

When using /v2/update I'm getting a badauth back in the browser, even if i use the following auth method.

http(s)://fakeUser:[SHARED_SECRED]@example.com/v2/update?hostname=[HOSTNAME]&myip=[IP]

in the Log: 2020/07/24 19:07:14 Invalid shared secret:

Am I doing something wrong, or is this basic-auth feature which the Dyn-compatible url uses not working anymore?? Sadly I think I will need this working, if I want to use it with some zywall device....

Cheers, Rainer

RHuehne avatar Jul 24 '20 19:07 RHuehne

Hey, can you try setting a password with no special chars, just once for testing and see if it's at least printed in the logs?

dstapp avatar Jul 26 '20 16:07 dstapp

I had the same Problem and i uused a password with no special chars.

0verEngineer avatar Oct 06 '22 14:10 0verEngineer

Seems like the API for the DynDNS compatible API endpoints is a bit different. You can test it with this curl command:

curl -su "karl:s3cr3t" "https://ddns.myhost.org/v3/update?hostname=test1&myip=99.99.99.99"

The auth data has to be provided via basic auth. I hope this helps.

thomas-mc-work avatar Jul 31 '23 13:07 thomas-mc-work