Keepup is a command line utility to update your records on Cloudflare.
Just run
go get -u github.com/ustrajunior/keepup
By default, Keepup will use the file: $HOME/.keepup.toml(yaml|json) but you can customize this passing the option --config="/path/to/file.toml". The config file will contain your credentials to your Cloudflare account.
The .keepup.toml has the following format:
default = "example"
[example]
domain = "example.com"
cfKey = "123456"
cfEmail = "your@email.com"
netInter = "en0"
[other]
domain = "other.com"
cfKey = "67890"
cfEmail = "other@email.com"
netInter = "en0"
To set a new value for your DNS record, you have to pass the dns flags when calling the Keepup command on the following formats.
keepup update --dns subdomain
keepup update --dns example.com
keepup update --dns subdomain.example.com
dns is the DNS record you want to update. It could be a subdomain or the main domain.
It will use the ip of the interface you setup on the netInter key on configuration file. If you want set a custom ip, just use the ip flag.
keepup update --dns subdomain --ip 127.0.0.1
To use a separated account, use the account flag.
keepup update --dns subdomain --account other
Copyright (c) 2016-present José Carlos Ustra Júnior
Licensed under MIT License