Duck DNS crontab script
- bash
- crontab
- sponge
- Debian:
sudo apt-get install moreutils
- Fedora:
sudo yum install moreutils
- Debian:
NOTE: This setup is similar to the instructions provided by Duck DNS (https://www.duckdns.org/install.jsp?tab=linux-cron)
- Download duck.sh script and place it in a desired location. For the sake of this setup,
/DuckDNS/duck.sh
will be used. - Update script to provide
DOMAINS
andTOKEN
based on your Duck DNS information. Also updateLOG_FILE
andLOG_LENGTH
to desired log location and log max line count respectively. - Make script executable
chmod 700 duck.sh
- Add script to crontab
crontab -e
*/5 * * * * ~/DuckDNS/duck.sh >/dev/null 2>&1
- Success!