Automatically updating the public IPs in CloudFlare | LinusCDE's Blog
LinusCDE's Blog

Automatically updating the public IPs in CloudFlare

Published on

My ISP has now interrupted my internet one too many times. Even though the Internet is only away for like 3 minutes, I always need to log into cloudflare and update two dns entries to my newly assigned ips. Having to do this up to 3 times per week now was getting tiring enough for me to automate it.

I already had automated that some time before, but the DDClient setup was tiresome to figure out and I didn’t know what specific version I used when I changed the OS of my Pi 4.

So I wanted to do it all by myself. A mix between interaction with my fritzbox for my ipv4, running some commands for my ipv6 (was just faster to figure out) and some interaction with the CloudFlare API and voilĂ : Here it is.

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte Frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close