Instead of creating a log file. This change leverages the syslog. This allows us to not have to manually rotate logs, or worry about the log file filling up the file system. This also give us timestamps of the logging without having to create the timestamps ourselves. Messages are logged to /var/log/messages by default. |
||
---|---|---|
LICENSE | ||
README.md | ||
cloudflare-template.sh |
README.md
Cloudflare Dynamic DNS IP Updater
This script is used to update dynamic DNS entries for accounts on Cloudflare.
Installation
git clone https://github.com/K0p1-Git/cloudflare-ddns-updater.git
Usage
This script is used with crontab. Specify the frequency of execution through crontab.
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday 7 is also Sunday on some systems)
# │ │ │ │ │ ┌───────────── command to issue
# │ │ │ │ │ │
# │ │ │ │ │ │
# * * * * * /bin/bash {Location of the script}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Reference
This script was made with reference from Keld Norman video.