Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Custom update script for No-IP

License

Notifications You must be signed in to change notification settings

axelrindle/noip-update-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Docker Image Version (latest semver)

🔇 This repository is archived as I moved away from No-IP.

noip-update-script

Custom update script for No-IP

Configuration

  1. Create an .env file in the cloned directory with the following contents:
USERNAME[email protected]
HOSTNAME=example.ddns.net
PASSWORD=secret
  1. Protect the file from unauthorized access:
chmod 600 .env
  1. All the variables may also be read from the environment directly, so a .env file is not mandatory.

Usage

Just run the script:

./noip-updater

Automation

Systemd Unit

The directory service contains a systemd unit as well as a systemd timer. You might want to modify them with the correct script paths. Place them in ~/.local/share/systemd/user/ and run the following commands to enable them:

systemctl --user enable noip.service
systemctl --user enable noip.timer
systemctl --user start noip.timer

Cron

Add the following to your crontab:

# noip2 update
@reboot systemd-cat -t noip /bin/bash path/to/script/noip-updater
0 */1 * * * systemd-cat -t noip /bin/bash path/to/script/noip-updater

Using @reboot didn't work properly on my Raspberry Pi 4...

Docker

docker run -d \
    --name noip-updater \
    -e USERNAME=example \
    -e PASSWORD=supersecret \
    -e HOSTNAME=example.ddns.net \
    axelrindle/noip-updater

License

MIT