Giter Site home page Giter Site logo

jupdate53's Introduction

jUpdate53

Simple DynDNS service for update AWS Route53 backend. Open Source Java project under Apache License v2.0

Current Stable Version is 1.0.0


DOC

Configuration

# SystemProperty / Default value
org.javastack.jupdate53.config.path=/etc/
Whitelist config file: org.javastack.jupdate53.whitelist.properties
# whitelist
# fqdn=zoneid
name1.acme.org=AWSZONEID...A
name2.acme.com=AWSZONEID...B

AWS-Credentials

See AWS documentation in DefaultCredentialsProvider and developer-guide.

If your plan to run webapp inside EC2, you can use EC2-role. This is a sample policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "route53:Get*",
                "route53:List*",
                "route53:TestDNSAnswer"
            ],
            "Resource": [
                "*"
            ]
        },   
        {
            "Effect": "Allow",
            "Action": "route53:ChangeResourceRecordSets",
            "Resource": "arn:aws:route53:::hostedzone/YOUR-AWS-ZONE-ID"
        }
    ]
}

API Usage

The API is very simple:

# Method: POST
# Path: /update
# Content-Type: application/x-www-form-urlencoded
# Parameters: 
#   - zoneid=${AWSZONEID}
#   - fqdn=${fully-qualified-domain-name}
# Optionals:
#   - ttl=${SECONDS}
#   - ip=${IPv4}
# Example: curl -i -d "zoneid=AWSZONEID...A&ttl=3&fqdn=name1.acme.org" ${BASE_URL}/update

Return something like this:

HTTP/1.1 200 OK
Cache-control: private
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 34

{ "status": "PENDING:127.1.1.42" }

MISC

Current hardcoded values:

  • Default config path: /etc/
  • Default whitelist config name: org.javastack.jupdate53.whitelist.properties
  • Default update "too-fast" (seconds): 30
  • Default wait-insync-route53 (seconds): 60 not used

Inspired in DynV6 and No-IP, this code is Java-minimalistic version.

jupdate53's People

Watchers

 avatar  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.