GithubHelp home page GithubHelp logo

ddns53's Introduction

DDNS53

Update Route53 as a Dynamic DNS

Purpose

Automatically update your Route53 A record to access your home network servers just requesting GET to your heroku app. DDNS53 uses REMOTE_ADDR as your home network global IP address, that is, DDNS53 is assuming your home network is configured using the same IP address outbound and inbound.

Installation

First, create your heroku account and install Heroku Toolbelt. See https://devcenter.heroku.com/articles/quickstart

$ git clone https://github.com/riywo/ddns53
$ cd ddns53
$ heroku create
$ heroku config:set DDNS53_USER="user" DDNS53_PASS="pass"
$ heroku config:set AWS_ACCESS_KEY_ID="..." AWS_SECRET_ACCESS_KEY="..."
$ heroku config:set DDNS53_FQDN="www.yourdomain.com,blog.yourdomain.com"
$ git push heroku master
$ open http://yourheroku.com

Usage

From a server in your LAN:

$ curl -s --digest -u user:pass http://yourheroku.com/www.yourdomain.com
$ curl -s --digest -u user:pass http://yourheroku.com/blog.yourdomain.com

Set the same commands on your server's crontab, Jenkins, etc.

Configuration

All configurations are environment variables. In production(heroku), you can use heroku config:set/unset to change the values.

DDNS53_USER,DDNS53_PASS

Mandatory

username and password for the digest authentication.

AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY

Mandatory

your aws access credentials.

DDNS53_FQDN

Mandatory

FQDN list which can be updated by DDNS53.

DDNS53_TTL

If you set this option, DDNS53 updates TTL of records as the value. Default value is 300.

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

ddns53's People

Contributors

riywo avatar

Watchers

Takayama Manabu avatar James Cloos avatar

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.