Coder Social home page Coder Social logo

chefdns's Introduction

ChefDNS

Have you ever gone hunting through knife node list in the search for a particular server's IP? In the habit of keeping a spare AWS tab open so you can copy and paste out public dns names? Written some terrifying shell script to keep your /etc/hosts in sync? Sync no more, my friend, the future has arrived.

On one of my pilgrimages through the darkest jungles of internet history, I found a remarkable and nearly-forgotten system for matching names of things to their ip addresses. The locals call it "DNS". And with nothing but a bit of node magic, you, too, can reap its benefits.

How to make it go

First, have NodeJS installed. Then:

$ git clone https://github.com/PinionTech/chefdns.git
$ cd chefdns
$ npm install
$ knife client create -d chefdns-apiclient -f 'auth.pem'
$ cp conf.example.coffee conf.coffee
$ vim conf.coffee
$ sudo node_modules/.bin/coffee chefdns.coffee # We need sudo to run on port 53

And in another terminal:

$ dig @127.0.0.1 mychefnode
$ dig @127.0.0.1 mychefnode.any.address.com # should work too

It's probably not very useful to just run queries locally, though. ChefDNS works best when you run it on an actual server somewhere and delegate an NS record to it with a short subdomain.

Should I point production traffic at a box running ChefDNS and put my faith in the blinding speed and scalability of DNS-via-HTTP-via-Rails-via-Erlang-via-Postgres?

Sure! I can't imagine how that could go wrong!

chefdns's People

Contributors

sgentle avatar

Watchers

Andrew Harvey avatar  avatar James Cloos avatar

Forkers

davidbanham

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.