Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use=web default no longer works as https://checkip.dyndns.org is no longer reachable anymore #597

Closed
wheelerlaw opened this issue Nov 14, 2023 · 6 comments
Labels
needinfo More information is needed from the user

Comments

@wheelerlaw
Copy link

https://checkip.dyndns.org is not reachable (the plain HTTP one is though). The default option for use=web should be changed to one that is working.

@LenardHess
Copy link
Contributor

ddclient will choose http/https depending on the URL by default.
There is the option to force every connection to use HTTPS - the -ssl option.

Did your configuration have https in the URL or did you set the -ssl parameter?

@LenardHess LenardHess added the needinfo More information is needed from the user label Nov 25, 2023
@BraxtonLowers
Copy link

I recently observed the same issue. Default ddclient.conf sets https as the only option because of the config line
ssl=yes # use ssl-support. Works with
My workaround (probably sub-optimal though, better solution would be to change default use=web) was to turn off ssl in the config, which allowed http://checkip.dyndns.org. Using
ssl=no

Note that this still used SSL when reaching out to my DNS provider according to sudo ddclient -daemon=0 -debug -verbose -noquiet so API keys were never send over plaintext.

@brianread108
Copy link

Also see #309

@LenardHess
Copy link
Contributor

The current ssl flag acts as a "Force SSL on everything" flag. It might be worthwhile to have separate flags for "Use SSL by default unless specified (aka. any URL without HTTP/HTTPS scheme prefix) and another flag for "Force HTTP scheme to use HTTPS - which might not work"

I haven't dug deep into this but I'd assume that every single URL passed to ddclient can be made either HTTP or HTTPS so the SSL support is selectable. In that case the SSL flag is merely a convenience flag to auto-upgrade everything to HTTPS.
If there are URLs hardcoded to HTTP, that needs further investigation.

@KLelong
Copy link

KLelong commented Dec 3, 2023

FWIW, I have intermittent problems just pinging checkip.dyndns.org.
I checked because I configured ddclient to send messages. Since a while I get intermittent messages like

WARNING:  cannot connect to checkip.dyndns.org:80 socket: IO::Socket::INET: Bad hostname 'checkip.dyndns.org'
WARNING:  found neither ipv4 nor ipv6 address

and
WARNING: found neither ipv4 nor ipv6 address
I just changed to loopia, will await results.

@LenardHess
Copy link
Contributor

With #608 merged you can now force the usage of HTTP by prefixing the URL with http:// even when the ssl config option or command line option is enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo More information is needed from the user
Projects
None yet
Development

No branches or pull requests

5 participants