Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion on how to reduce execution frequency #32

Open
chnagy opened this issue Aug 7, 2024 · 1 comment
Open

suggestion on how to reduce execution frequency #32

chnagy opened this issue Aug 7, 2024 · 1 comment

Comments

@chnagy
Copy link

chnagy commented Aug 7, 2024

Just wanted to leave my suggestion to reduce the frequency of the api calls.

Many modern router offer a dyndns feature.
I published a dummy GET endpoint in my local network which executes your update.php and entered the host as dyndns server in my router so it triggers the update script only when I receive a new IP from my ISP.

@DarkSpir
Copy link

DarkSpir commented Aug 9, 2024

Also a good idea would be to compare the current IP address (as returned by getCurrentPublicIPv[4|6] functions) to the result of a DNS [A|AAAA] record resultion (see dns_get_record function in PHP). If they match, you don't even have to log into the Netcup API because there's nothing for you to do anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants