neothematrix / noip-renew

Auto renew (confirm) noip.com free hosts
https://hub.docker.com/r/moebiuss/noip-renew
Apache License 2.0
54 stars 20 forks source link

Is there a way to renew multiple accounts at once? #45

Closed directentis1 closed 10 months ago

directentis1 commented 1 year ago

Since I use many noip hostnames for many different purposes, I would like to ask if there is a way to automatically renew on multiple accounts?

neothematrix commented 1 year ago

ciao, if you have more than one domain connected to the same account all the domains will be automatically renewed. If you have more than one no-ip account the script itself can't handle them in one run, so you'll need to run it once for every account with different parameters.

Angel0ffDeath commented 1 year ago

@directentis1 You can modify noip-renew-user.sh with for loop to cycle through all your accounts. Or just to copy/paste the 4 lines which start python script with different account settings. Dont forget password is base64 encoded. This way it will run the script for different accounts at once. The other option is as @neothematrix says to run the script few times for each account.

directentis1 commented 1 year ago

well, I wonder, can I use it with Github Actions to automatically update my noip.com hostnames?

Angel0ffDeath commented 1 year ago

@directentis1 Never tried it. I run the script via cron job on certain date

Angel0ffDeath commented 1 year ago

@directentis1 The only problem, if you cycle through all your accounts will be correct rescheduling of the script. So probably it will be better if you run the script separately for each account. This way script will be correctly rescheduled for this account

directentis1 commented 1 year ago

@Angel0ffDeath I also plan to use crontab but the downside is that if you forget to turn on your computer at the time it happens, it will ignore and not notify you at all, so you need to put it on your server.

Angel0ffDeath commented 1 year ago

@directentis1 You are correct. Put it on server, NAS or whatever runs 24/7. Im using raspberry Pi 3 for my home automation and it runs non-stop. No problems till now :)