A Dynamic DNS client that automatically updates your IP in Cloudflare DNS records, ensuring your domain stays accessible without the need for a static IP. ๐ฅ
Requirements:
- Go >= 1.24
You can run the install script on UNIX like systems, for windows you can download the binary on the latest release
curl -L https://raw.githubusercontent.com/magonxesp/cloudflare-ddns/refs/heads/main/scripts/install.sh | sudo bash -You can uninstall the program removing the executable.
sudo rm /usr/local/bin/cloudflare-ddnsFirst you need the config.json file for configure the Account, API Token and Zone DNS records to be updated.
You can make it downloading the sample configuration.
curl -L https://raw.githubusercontent.com/magonxesp/cloudflare-ddns/refs/heads/main/example-config.json -o config.jsonThen when you finish editing the config.json file you are able to run the program on the same working directory
as config.json is located.
cloudflare-ddnsAlso, you can specify the config.json path.
cloudflare-ddns --config /path/to/config.jsonFor more options you can see them with the -h option.
cloudflare-ddns -hCloudflare DDNS is available as docker image too. You can pull magonx/cloudflare-ddns and use it.
docker pull magonx/cloudflare-ddns:latestAnd then run the image.
docker run magonx/cloudflare-ddns:latest -v ./config.json:/config.jsonFor build the binary executable you have to run the following command.
$ go buildAnd then you should see the executable on the working directory.