Categorygithub.com/BinaryTENSHi/flareupd
repositorypackage
1.0.0
Repository: https://github.com/binarytenshi/flareupd.git
Documentation: pkg.go.dev

# README

flareupd

A simple daemon for updating a dynamic dns entry on Cloudflare.
Both IPv4 and IPv6 supported.

Usage

  1. Download the latest release from Github here
  2. Export the required environment variables
  3. Launch the application

Alternatively, you can use the example systemd service to launch the binary as a service.

The application will automatically try and fetch the IPv4 and IPv6 address. Should one of them fail, an appropriate message will be printed and the respective type will be disabled for further updating.

Required environment variables

VariableDescription
CF_API_KEYYour cloudflare api key
CF_API_EMAILYour cloudflare email
CF_ZONE_NAMEYour cloudflare zone name
REFRESHTime in seconds to fetch the external ip and update the record
ENTRYThe name of the dns record to update

CF_ZONE_NAME=binary.network and ENTRY=flareupd will update the domain flareupd.binary.network.

Optional environment variables

VariableDescriptionDefault
IP4_INFO_URLURL to use for fetching the IPv4 addresshttps://v4.ident.me/
IP6_INFO_URLURL to use for fetching the IPv6 addresshttps://v6.ident.me/

These urls must only return the IP address in no special format.