qdm12 / ddns-updater

Container to update DNS records periodically with WebUI for many DNS providers
https://hub.docker.com/r/qmcgaw/ddns-updater/
MIT License
1.62k stars 156 forks source link

Feature request: Web API endpoint to trigger updates #615

Open Redth opened 7 months ago

Redth commented 7 months ago
  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

tobidemski commented 3 weeks ago

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.