Giter VIP home page Giter VIP logo

ec2_dns's Introduction

EC2 to BIND

Simple tool to maintain consistency between what's alive in EC2 and what's listed by your named server.

Usage

usage: ec2_to_bind_zone.py [-h] -r REGIONS -d DOMAIN -D DIRECTORY -z ZONE [-R] [-F] [-K AWS_KEY] [-S AWS_SECRET]

optional arguments:
  -h, --help                            show this help message and exit
  -r REGION, --region REGION            Region to poll.
  -d DOMAIN, --domain DOMAIN            (Sub)domain to be appended to AWS instance name, ex: ec2.mydomain.com
  -D DIR, --directory DIR               Path to zone files directory
  -z ZONE, --zone ZONE                  Zone file name within --directory path.
  -R, --reload-bind                     Reload bind at end of script run
  -F, --force                           Run as a non root user
  -K KEY, --aws-key KEY                 AWS API access key
  -S SECRET, --aws-secret-key SECRET    AWS API secret key

Bind config

This script is designed to maintain a BIND zone include file containing CNAMES to ec2 "public dns name"s. While the script can increment the zone file serial and reload bind (with the -R option), it will not edit your zone file to make it properly formatted. Refer to the test/ec2.example.com.zone file (specifically the $ORIGIN and $INCLUDE lines) for an example of a correct setup. Essentially the generated "instance_cnames..zone" file must be included by the "parent" zone file, after a correct $ORIGIN line has been specified.

Disclaimer

This tool is brand new, please holler at the issues page for any funkyness that arises.

Which is a perfect segue to..

Warranty

NONE.

This software may blow up all of your zone files, your computer, and possibly your face. Use at your own risk!

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.