This Python script is for updating your dynamic ip to the dynamic DNS provider dy.fi. The script will update the ip once it's started
- every one hour if the ip has changed, or
- every six days regardless of that so that the DNS stays attached to your ip
You need Python 3, dy.fi account and an dynamic DNS setup there.
- Create Python virtual environment
- Install requirements in requirements.txt to that
cp env.sh.example env.shand fill your dy.fi account details
Execute run.sh with bash.
Leave it running as such, put it in cron or deploy a systemd service as you wish.
Code base is pretty old so it's not beautiful. But it works!