An open API service indexing awesome lists of open source software.

https://github.com/mhutter/selfdns


https://github.com/mhutter/selfdns

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

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]