mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Feature request: Web API endpoint to trigger updates #355
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Redth on GitHub (Jan 29, 2024).
Some routers, such as Unifi, have the option to specify a custom URL to be invoked when the gateway itself realizes the IP change has happened. For example:
localhost/update?domains=mydomain.com;*.mydomain.com&ip=%iwhere%iis replaced with the actual new ip address from Unifi.If there was an option to host a tiny web api with an endpoint that took these parameters it could force the update in a more timely fashion than relying on 5 min cron jobs. Even if there was no IP parameter passed and it could just trigger an update sooner that would be a helpful place to start.
N/A
@tobidemski commented on GitHub (Aug 27, 2024):
I also looking for such a solution. Fritzbox offers an option to call a dyndns endpoint when the ip has changed.
Example documentation with the available parameters: https://en.avm.de/service/knowledge-base/dok/FRITZ-Box-6660-Cable/30_Setting-up-dynamic-DNS-in-the-FRITZ-Box/
Im not a fan of randomly calling an endpoint in a fixed interval to check for ip address changes and I would like to have such an enpoint to only run the "update" when fritzbox calls the docker container api url.
@milux commented on GitHub (Sep 30, 2024):
I would also be very interested in this. I used to do DDNS updates via my own tool until I stumbled upon this great project, which - funny enough - picked exactly the same name as my (unpublished) tool. 🤓
Anyway, this feature is exactly the only thing that's missing. It's not terribly bad to wait a few minutes after a disconnect happend. Still, it would be even better if the DDNS update would happen instantly as soon as the internet connection comes back online.
A simple HTTP endpoint on another port would do the job, and everything is covered by
Gos standard lib, so no new dependencies etc. required at all.@virtualdj commented on GitHub (Jan 12, 2025):
I would be interested in having an endpoint to force update because sometimes the IP update fails, like below:
Having and endpoint helps triggering an update manually.