https://github.com/mhutter/selfdns
https://github.com/mhutter/selfdns
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mhutter/selfdns
- Owner: mhutter
- License: mit
- Archived: true
- Created: 2019-09-15T19:55:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-15T18:34:16.000Z (over 5 years ago)
- Last Synced: 2024-05-01T21:08:49.646Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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]