Cloudflare DynamicDNS Tool for using Cloudflare DynamicDNS as a DDNS provider.
If you are hosting a Home Server and have a Dynamic IP this is an essential library to use.
You will need a free account with Cloudflare. Then you can set this either in a cron job, or have it running in a Docker container.
DynDNS will then update your specified A record(s) to the given public IP address that is given by your ISP.
This is all done through the Cloudflare APIs so no need to worry about the stability of 3rd Part Services.
To install this project use:
go get github.com/henryleduc/dyndns/cmd/main
You can also use this project as a DDNS client inside your project or application.
Just simply import:
import "github.com/henryleduc/dyndns/cloudflare"
Feel free to contribute to this project, I plan on adding other services in the future such as DuckDNS and Google Domains. I'm also open to functionality requests.