Feature request: Web API endpoint to trigger updates #355

Open
opened 2025-11-20 04:23:06 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @Redth on GitHub (Jan 29, 2024).

  1. What's the feature?

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=%i where %i is 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.

  1. Extra information?

N/A

Originally created by @Redth on GitHub (Jan 29, 2024). 1. What's the feature? 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=%i` where `%i` is 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. 3. Extra information? N/A
Author
Owner

@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.

@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.
Author
Owner

@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.

@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. :nerd_face: 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 `Go`s standard lib, so no new dependencies etc. required at all.
Author
Owner

@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:

Error updating DNS IP

Having and endpoint helps triggering an update manually.

@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: ![Error updating DNS IP](https://github.com/user-attachments/assets/7a988159-3372-43b9-9c18-03b7ef5c5f7d) Having and endpoint helps triggering an update manually.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#355