Closed invin12 closed 7 years ago
Could you include your configuration file, except your password of course?
# Inadyn v2.0 configuration file format
verify-address = true
period = 600
iterations = 1
custom webcam-odincovo {
username = nouser
password = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ssl = true
checkip-command = "/sbin/ifconfig vlan2 | grep 'inet addr'"
ddns-server = www.duckdns.org
ddns-path = "/update?domains=%h&token=%p&ip=%i"
ddns-response = "ok"
hostname = { su155-odincovo.duckdns.org,unixnet.duckdns.org,webcam-odincovo.duckdns.org,invin1.duckdns.org,8mkr-odincovo.duckdns.org }
# checkip-server = api.ipify.org
}
Aha, so you're using the custom DDNS provider support with custom URL encoding. There was a couple of bug fixes to URL encoding just prior to the v2.2 GA release. Also, DuckDNS has an official plugin which should simplify your configuration.
Therefore I'd recommend upgrading to the official v2.2 release and try the following configration instead:
verify-address = true
period = 600
provider duckdns.org {
username = nouser
password = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
checkip-command = "/sbin/ifconfig vlan2 | grep 'inet addr'"
hostname = { "su155-odincovo.duckdns.org", "unixnet.duckdns.org", "webcam-odincovo.duckdns.org", "invin1.duckdns.org", "8mkr-odincovo.duckdns.org" }
}
This should work, unless you run into another bug. (SSL is the default these days.)
Ok, thank you, I will try this. It`s a little problem to recompile inadyn on my dd-wrt router under ARM.
I have the same problem, and still. I tried all of this, no success. Please view my case, maybe its fixable and I did something wrong :-) Problem: 400 Bad Request answer from spdns provider, what I see is the encoded Url for update request. On "inadyn -l debug -n" I see " Sending alias table update to DDNS server: GET %2fnic%2fupdate%3f%26myip%3d192.168.0.1%26hostname%3dxxxx.spdns.de HTTP/1.0" Im using In-a-dyn version 2.2-rc1 -- Dynamic DNS update client. I cannot update to any other version, because its an ARM Asus Router with Merlin-OS on it. I changed the package-source to some other, but since I updated some libs on system, older inadyn wont run anymore. But inadyn is running, just not working correctly. I have to use custom ddns in config, because my provider SPDNS is maybe not supported directly. The Update Url is "update.spdyn.de/nic/update?" which I have to set. The old problem that inadyn always appends the hostname at the end of the update-url is known, so the string ddns-path = "/nic/update?&myip=192.168.0.1&hostname=" works normally. I update the RFC-IP so spdyn puts itself the IP in which called the update. Worked for years. Question is now, can I do something with the config not to encode URL or just wait for new version some days ?
@schischlak I cannot support every version of Inadyn that some distribution decided to ship. My spare time is limited to supporting the latest official release, in this case v2.2. I'm not particularly happy to hear about distributions shipping pre-release quality of my SW.
However, the following config snippet, from the man page, should work for spdyn.de, which is a supported provider.
# spdyn.de
provider spdyn.de {
username = your_username
password = your_password
hostname = your_host.spdyn.de
}
Thank you very much. I got the inadyn from the original entware-ng binaries repo, updated with opkg normal way. They say "We've downgraded inadyn fork down to last stable release" maybe thats why I got this version. I tried this already but client says "Invalid DDNS provider spdyn.de - Parse error in /opt/etc/inadyn.conf" therefore I said must use "custom".
Try provider default@spdyn.de ...
On Mon, Oct 2, 2017, 16:15 schischlak, notifications@github.com wrote:
Thank you very much. I got the inadyn from the original entware-ng binaries repo, updated with opkg normal way. They say "We've downgraded inadyn fork down to last stable release" maybe thats why I got this version. I tried this already but client says "Invalid DDNS provider spdyn.de - Parse error in /opt/etc/inadyn.conf" therefore I said must use "custom".
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/troglobit/inadyn/issues/175#issuecomment-333547443, or mute the thread https://github.com/notifications/unsubscribe-auth/AALM3eDGzPjroct1yzjPeABV4oamnFUjks5soPAYgaJpZM4PltBy .
inadyn[4052]: Successfully sent DDNS update using HTTPS! inadyn[4052]: Successfully received DDNS update response (890 bytes) using HTTPS! inadyn[4052]: DDNS server response: HTTP/1.1 200 OK inadyn[4052]: Successful alias table update for .... !
@schischlak So ... I take it, it worked?
Please let me know if we can close this issue now.
Yes, you can close this issue. The problem can be solved by using the right version with the url-encode-problem fixed (2.2) and then proper settings for the dyn-provider, if it is directly supported. I was lucky mine was supported (spdns) by inadyn, because with custom settings I got problems with "libconfused" after update. Thank you very much :-)
Alright, closing.
I have an error 400 with duckdns.org
but no problem with manual update through telnet
Is it possible to make a request without URL encoding?