The cloudflare_ddns.sh
is a command-line tool for Cloudflare DDNS (Dynamic Domain Name Server). It is written in the shell and has very few dependencies.
- Download the shell script then upload it to a folder on your Padavan router, e.g.
/usr/bin
. - Give the shell script executable permissions.
chmod +x /usr/bin/cloudflare_ddns.sh
- Modify the variables in the shell script according to the comments.
- Run the shell script and view the results.
- After confirming that it is correct, you can also add it to the crontab for automatic execution.
# e.g.
# Run every five minutes
*/5 * * * * /usr/bin/cloudflare_ddns.sh > /dev/null 2>&1
- 2021/12/2 - Optimize the way to obtain execution results.