GithubHelp home page GithubHelp logo

dgpc / ddns Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 3.37 MB

Dynamic DNS server for Google Cloud DNS managed zones on Cloud Run

License: Apache License 2.0

Dockerfile 1.16% Go 98.84%

ddns's Introduction

DDNS

Dynamic DNS server for Google Cloud DNS managed zones on Cloud Run.

This is not an officially supported Google product. This project is maintained soley by David Claridge, and not in association with his employment at Google.

Set-up

  1. Create a GCP project and enable Datastore, Cloud DNS & Cloud Run.
  2. Create a Zone in Cloud DNS.
  3. Clone this GitHub repository.
  4. Change the Project and zone constants in ddns/google.go.
  5. Build using docker build -t gcr.io/<project>/ddns-server:latest ..
  6. Push the image to GCR using docker push gcr.io/<project>/ddns-server:latest.
  7. (optional) Create a service account with the roles "Cloud Datastore User" and "DNS Administrator". Pass that service account to the next command as --service-account <custom-account>.
  8. Deploy the Cloud Run application gcloud run deploy --image gcr.io/<project>/ddns-server:latest --project <project> --platform managed --allow-unauthenticated.
  9. Create tokens for your domains using: go run ./cmd/adddomain. The created token corresponds to the password to use in the next step.
  10. Configure the dynamic DNS client on your router to use the Cloud Run app's address. Specify any value as the username, if required, and the created token as the password.

TODO

This project is a work in progress. Unfinished work includes:

  • UI for managing domains (instead of adddomain CLI utility).
  • Moving project/zone configuration to environment variables.
  • Listening based on the PORT environment variable, rather than a constant 8080.

ddns's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

michaelolson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.