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
EasyDNS server response "no update required" results in Error response from DDNS server, ignoring #373
Comments
Thanks for the report! Is the exact string from the server: |
It's wrapped in html. The actual message is
|
OK, thanks! I think this patch should help, do you have any means of testing it? diff --git a/plugins/easydns.c b/plugins/easydns.c
index ef80821..d814443 100644
--- a/plugins/easydns.c
+++ b/plugins/easydns.c
@@ -79,7 +79,7 @@ static int response(http_trans_t *trans, ddns_info_t *info, ddns_alias_t *alias)
DO(http_status_valid(trans->status));
- if (strstr(resp, "NOERROR"))
+ if (strstr(resp, "NOERROR") || strstr(resp, "no update required"))
return 0;
if (strstr(resp, "TOOSOON")) |
Hmm, I found this discussion online https://community.sophos.com/sophos-xg-firewall/f/discussions/103809/dynamic-dns-and-easydns-functionality/378085#378085 it refers to the same output you get, but it seems to have the "NOERROR" string as well, which we look for already:
Do you get NOERROR as well? I notice you're running a bit older version, so maybe it's another problem you've run into? |
I'm using TrueNAS 12.0 which is based on FreeBSD 12.2 |
Hmm, OK maybe it's not shown with normal log level. Could you try running with Also, but maybe you know this already, since TrueNAS packages Inadyn, you need to report this bug also to them so they can backport, or patch locally for their releases. I don't know if they just use FreeBSD pkgs, but anyway I'm not in control of any of the downstream projects. |
debug level log
|
I built it on another system from the latest source. It failed with the same errror. |
Awesome, thank you for taking the time to investigate, really appreciated! It really appears as if they've changed their (old compat) API. I'll make sure to get this fix into the next release of In-a-dyn! Cheers <3 |
Fixes issue #373 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
I'm running into something similar, with a custom setting for ddns-server webservices.bhosted.nl in version 2.9.1 (docker):
Maybe I should add a string comparison to some/one of the 'static int response' functions (which one)? |
Fixed it by adding a line to the config file: |
Huh, I had completely forgotten about that setting! :-D We should probably document it a little bit better than just in passing in the README. Anyone up for the task? Basically "just" add a section to the man page inadyn.conf.5 |
@joshuisken an example config for webservices.bhosted.nl would also be great to have in the docs/README, of course |
For bHosted one needs to request a hashed password from support, since just creating a MD5 hashed password fails.
Is it that you add the specified ddns-response to a list of strings being matched? |
Great, we should try to get that documented, at least in the README, how to use For a better integration, a C plugin could be written. That's how more elaborate success/fail/unchanged responses are handled. However, since there is no automatic way to get the hash (from support, you say), then I don't know if it's worth the effort of making (and maintaining!) a dedicated plugin. |
When querying EasyDNS, the server response "no update required" is treated as an error.
inadyn retries every two minutes.
Similar to the issue resolved in #214
In-a-dyn version 2.5 -- Dynamic DNS update client.
Update forced for alias xxx.xxx.xxx, new IP# xxx.xxx.xxx.xxx
Fatal error in DDNS server response:
[200 OK] OK
no update required for xxx.xxx.xxx to xxx.xxx.xxx.xxx
Error response from DDNS server, ignoring ...
The text was updated successfully, but these errors were encountered: