cloudns

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: MIT Imports: 1 Imported by: 0

README

cloudns

Add & remove dns records to google cloud dns

GoDoc

Installation

cloudns supports both binary installs and install from source.

To get the binary just download the latest release for your OS/Arch from the release page and put the binary somewhere convenient. cloudns does not assume anything about the location you run it from.

To install from source, just run:

go get -u github.com/0x1EE7/cloudns

Features

  • Add given IPs to the domain
  • Remove given IPs from the domain

Usage

$ cloudns add -i `curl -s https://ipinfo.io/ip`  -d your.app.tld
Using config file: ~/.cloudns.yaml
Adding IPs [2.2.3.4] to your.app.tld
Up to date records after changes: [2.2.3.4 1.2.3.4]

$ cloudns remove -i 1.2.3.4 -i 2.2.3.4 -d your.app.tld
Using config file: ~/.cloudns.yaml
Removing IPs [1.2.3.4 2.2.3.4] from your.app.tld
Up to date records after changes: []
Config File & env

sa_file & dns_zone can be configured in --config file

$ cat ~/.cloudns.yaml
sa_file: /path/to/google_cloud_sa_file.json
dns_zone: yourapp-zone-name

Values in config file can be overriden|set by an env var too

$ SA_FILE=/path/to/another_sa.json cloudns
Help
$ cloudns
Easily modify DNS records in Google Cloud DNS

cloudns is a CLI to add and remove DNS entries.

Usage:
  cloudns [command]

Available Commands:
  add         Add given IPs to the domain
  help        Help about any command
  remove      Remove given IPs for the domain

Flags:
      --config string   config file (default is $HOME/.cloudns.yaml)
  -h, --help            help for cloudns

Use "cloudns [command] --help" for more information about a command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL