Skip to content

Updates cloudflare with servers public ip

License

Notifications You must be signed in to change notification settings

dvirdung/cf-dns-updater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-dns-updater

Updates cloudflare with servers public ip

Installation

go get -u github.com/jonaz/cf-dns-updater
sudo mv $GOPATH/bin/cf-dns-updater /usr/local/bin

curl -o /etc/systemd/system/cf-dns-updater.service https://raw.githubusercontent.com/jonaz/cf-dns-updater/master/cf-dns-updater.service

sudo groupadd cloudflare
sudo useradd -r -g cloudflare cloudflare

sudo systemctl daemon-reload
sudo systemctl enable cf-dns-updater.service
sudo systemctl start cf-dns-updater.service

Flags

Usage of cf-dns-updater:
  -config string
    	location of the config file (default "config.json")
  -log-level string
    	log level (default "warning")

Configuration

a json file that looks like this:

{
    "apiKey": "key",
    "apiEmail": "email",
    "interval": "30m",
    "domains": [
        "test.domain.com"
    ]
}

About

Updates cloudflare with servers public ip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%