mirror of
https://github.com/tiennm99/update-dns.git
synced 2026-06-08 16:17:09 +00:00
582 B
582 B
update-dns
Update CloudFlare DNS records with dynamic IP when your IP is behind router's IP.
How to use this script
git clone https://github.com/tiennm99/update-dns
cd update-dns
nano main.sh
# Edit value in the script
./main.sh
You can also use the script with cronjob to update your IP every 5 minutes
crontab -e
# Add the following line to the file
*/5 * * * * /path/to/main.sh
Note:
You may need to config your router to forward the ports you wanted to the exact machine. If you have problems, let's discuss in the discussions section.