cloudflare ddns
Wht it does is get your public ip using the free api https://api.ipify.org
then gather all records from a zoneID and updates all with this ip.
To install dependencies:
bun installTo run:
bun run index.tsThis project was created using bun init in bun v1.1.3. Bun is a fast all-in-one JavaScript runtime.
To automate use crontab
crontab -e
and add the following line, changing the timing or the runnner.
0 */1 * * * bun run /home/pi/cloudflare/index.ts >> /home/pi/cloudflare/log.txt