How to update the cloudflare dns record with home public ip automatcally

How to update the cloudflare dns record with home public ip automatcally

·

1, clone it from cloudflare-ddns, and modify it with my own web which used to get the public ipv4 as follows:

https://ipv4.trippal.email or http://icanhazip.com


2, get cloudflare the zone id, token


3, edit crontab to refresh it every 15 mins.


*/15 * * * * /usr/bin/bash /root/bin/DdnsOnCloudFlare/updateIpv4.sh >> /var/log


references:

1,Using the Cloudflare API to Manage DNS Records – Tech Otaku (tech-otaku.com)

2,**动态DNS更新利器:CloudFlare-DDNS**-CSDN博客

3, 探秘Cloudflare动态DNS更新器:远程访问家庭网络的神器-CSDN博客