Support ipprefix via argument#497
Conversation
58fb27d to
f0ebc86
Compare
|
Is that ipprefix parameter supported by any dyndns service and any dyndns client already? |
f0ebc86 to
2e4da61
Compare
|
to be honest, not that I know of. I used dynv6 before, but they are down now, and they had their own - but similar API. For me at least, I wanted that because passing the |
2e4da61 to
1b92dfd
Compare
|
If you want I can adjust the behavior or rename the parameter. The advantage of the extra parameter is that it keeps the api still compatible, as the calls still work without it as before. |
|
Any consideration? Or alternative suggestion? I mean, this is a real-world problem :) |
|
I didn't do any related investigations yet, but at least I started working on the software and site again - primarily due to #505 (which is already half-done on the prod system). For this PR it would be great if you could rebase it on current master branch, so that the github actions based tests will run (travis-ci is defunct here since long). |
4b8af0a to
73bb0ce
Compare
|
rebased on |
|
Any updates on this @ThomasWaldmann? I can confirm that this is a real-life issue: Deutsche Telekom assigns customers both a /64 and a /56 prefix by default (two totally different subnets indeed, i.e. the /64 subnet is not within the /56 subnet). AVM Fritz!Box routers will then use the given /64 prefix just for the router and use a randomly chosen /64 subnet within the given /56 subnet for all clients in the network. That's why we can't derive the IPv6 addresses of related hosts using the routers IPv6 address - they are in different subnets. It just took me some time to notice that the prefixes don't match 🙈 By googling for "ip6lanprefix" (as in how AVM calls it) one finds multiple other dynamic DNS services (e.g. dynv6.com, dnshome.de, strato.com, do.de) with similar API parameters, however, they are all named differently. Calling it "ipprefix" makes sense IMO considering it works for both IPv4 and IPv6 (even though I doubt than one would ever use it for IPv4...). Would be great if we can get this to prod ❤️ |
73bb0ce to
b212395
Compare
|
Happy second birthday 🎉 |
|
Update: Since 0.13.0, the service supports:
So, considering that, can we close this? |
|
Works like a charm, thank you Thomas! 🚀 🎉 However, there's a minor practical difference to this PR: This PR allows to configure the prefix for related hosts specifically. This PR thus allows one to use both the primary host and related hosts, whereas the new Just to emphasise: My personal use case has been fixed. I don't need IPv6 access to the router specifically, but rather just want to use related hosts, so the About the limitation: I'm with Deutsche Telekom again (wasn't for quite a while, but they enabled FTTH for me literally just yesterday 😅) and I'm still using an AVM Fritz!Box router. They have assigned With the update URL With the update URL With an update URL like Suggestion: nsupdate.info could either additionally support the |
|
Looks like my assessment was a bit premature 😒 Depending on the ISP and the DynDNS2 client (i.e., the router)
The solution is unchanged: nsupdate.info could support something like the suggested More details: The issue is the following: To meet the DynDNS2 protocol requirement of only sending IP address updates when the IP address has changed, some DynDNS2 clients like AVM Fritz!Box routers query the DNS regularly to check whether the client's current IP address matches the published one. If the IP addresses differ or if the check fails (possibly after some retries), the router will send another update. To perform this check the router will use the primary host. However, with I'm not just with Deutsche Telekom, but also with Vodafone. It works with neither out-of-the-box, but there are workarounds for both:
|
Allow an extra argument
ipprefixfor both ipv4 and ipv6 to pass a separate prefix, like often for IPv6 connections where one gets a main ipv6 for the router and a subnet for the internal network.Passing the ipprefix will also override the default netmask from the config.
Fixes #353