Automatic DNS record updater for Cloudflare written in Go.
Clone the project
git clone https://github.com/TheSilverBulet/go-dns-update.git
Go to the project directory
cd go-dns-update
Build binary
go build main.go
Run program
./main -flag1=a -flag2=b
Program help
./main -h
Install something like the following to your crontab
*/5 * * * * /path/to/binary -flag1=a -flag2=b
This will run the program every 5 minutes
I wanted to challenge myself to build something others and I could find useful in Go.
DDClient works great and does exactly what it was meant to while also being a mature project. This program attempts to solve a similar problem that DDClient solves, except only for a specific case (Cloudflare), and this program doesn't include any cron or timing element so it needs to be setup separately.