Skip to content

A command line tool to update Cloudflare DNSRecord with the current external ip or a given ip.

License

Notifications You must be signed in to change notification settings

joseustra/keepup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keepup

Code Climate Build Status

Keepup is a command line utility to update your records on Cloudflare.

Instalation

Just run

go get -u github.com/ustrajunior/keepup

Configuration

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"

Using

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

License

Copyright (c) 2016-present José Carlos Ustra Júnior

Licensed under MIT License

About

A command line tool to update Cloudflare DNSRecord with the current external ip or a given ip.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages