selfdns

command module
v0.0.0-...-b8f02ad Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 9 Imported by: 0

README

= selfdns

image:https://circleci.com/gh/mhutter/selfdns.svg?style=svg["CircleCI", link="https://circleci.com/gh/mhutter/selfdns"]

Determine own IP and update a DNS record if required

== Usage

Configuration is done via ENV vars:

* `DOMAIN` (*required*) - Target domain to use
* `GOOGLE_APPLICATION_CREDENTIALS` (*required*) - Path to Google Cloud Service Account JSON file
* `GOOGLE_PROJECT` (*required*) - Name of the Google Cloud Project to use
* `GOOGLE_ZONE` (*required*) - Name of the Google Cloud managed DNS zone to use

The Google Cloud Service Account only needs the "DNS Admin" role.


== Development

    gin --immediate

gin `.env` template:

    DOMAIN=home.example.com
    GOOGLE_APPLICATION_CREDENTIALS=./gcloud-sa.json
    GOOGLE_PROJECT=example-project
    GOOGLE_ZONE=example-com


== Reference

* https://github.com/googleapis/google-api-go-client


== License

MIT (see link:LICENSE[LICENSE])

---
> https://hutter.io/[Manuel Hutter] -
> GitHub https://github.com/mhutter[@mhutter] -
> Twitter https://twitter.com/dratir[@dratir]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳