Updates a list of DNS records with the current IP address
- Copy
config.json.example
intoconfig.json
. - Add your credentials
email
: your cloudflare emailapiKey
: your cloudflare API key (https://dash.cloudflare.com/profile/api-tokens > Global API Key)zoneID
: the zone ID of your domain (you can find this in the dashboard of your domain, right bottom side)recordsToUpdate
: array of the domains to update, use the structure present in the original config file
- Run
node cloudflare-ip-monitor -u
to update your IP. You can create a cronjob or something like that to automate this process. - Run
node cloudflare-ip-monitor -h
to see all the commands.