Skip to content

Auto renew (confirm) noip.com free hosts with docker compose

License

Notifications You must be signed in to change notification settings

maximunited/noip-renew

 
 

Repository files navigation

Docker Image CI

Script to auto renew/confirm noip.com free hosts

noip.com free hosts expire every month. This script auto clicks web pages to renew the hosts, using Python/Selenium with Chrome headless mode.

NOTE: this is an up-to-date fork of loblab/noip-renew repository as it seems it's not anymore actively developed, I'll try to keep this fork up to date and working as much as possible. Feel free to contribute!

noip.com hosts

Usage

  1. Clone this repository to the device you will be running it from (git clone https://github.com/maximunited/noip-renew.git)
  2. Run setup.sh and set your noip.com account information
  3. Run noip-renew-USERNAME command

Check confirmed records from multiple log files:

grep -h Confirmed *.log | grep -v ": 0" | sort

Usage with Docker

For docker users, run the following:

echo 'add username here' > ${SECRETSDIR}/noip_username
echo 'add password here' | base64 > ${SECRETSDIR}/noip_password
debug_lvl=2
docker build -t maximunited/selenium:debian .
echo -e "$(crontab -l)"$'\n'"12  3  *  *  1,3,5  docker run --network host maximunited/selenium:debian "${SECRETSDIR}/noip_username" "${SECRETSDIR}/noip_password" ${debug_lvl}" | crontab -

NOTE: with newer versions of ChromeDriver (>v99) you might need to increase the shm size of the container otherwise ChromeDriver will crash and throw an exception. To do it, you can just add the "--shm-size="512m" flag to the docker run command.

Usage with Docker Compose

Refer to the sample docker-compose-sample.yml

Remarks

The script is not designed to renew/update the dynamic DNS records, but only to renew the hostnames expiring every 30 days due to the free tier. Check noip.com documentation for that purpose. Most wireless routers support noip.com. For more information, check here. You can also check DNS-O-Matic to update multiple noip.com DNS records.

About

Auto renew (confirm) noip.com free hosts with docker compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.2%
  • Shell 37.7%
  • Dockerfile 4.1%