Giter Club home page Giter Club logo

serf_dns's Introduction

WARNING:

This project is just a proof of concept

It has been superseded by Consul (which has a dns inteface)

Build Status

A program to serve DNS requests based on the Serf topology.

Description

This program uses the Serf RPC to query Serf and inspect the current names and IPs.

From this data it builds an in-memory mapping of DNS records, and responds to DNS requests.

Building

You need at least Go 1.2

Running

I wouldn't yet :(

There is no error handling, it's basically crap.

Examples

You could run this program, and then have BIND forward a particular zone to it:

zone "serf." in {
    type forward;
    ; forward to Serf_dns running on localhost!
    forwarders { 127.0.0.1 port 8053 ; };
};

Demo

Once running, you can confirm the records are in place with dig:

$ # Using a "serf" fake TLD
$ # Lets query the local serf_dns running on 8053...
$ dig +short @localhost -p 8053  server1.xkyle.com.serf.
192.168.1.67
$ # Run serf members to verify...
$ serf members
server1.xkyle.com     192.168.1.67:7946    alive
server2.xkyle.com     192.168.1.69:7946    alive
$ echo 'It Works!'
It Works!

serf_dns's People

Contributors

solarkennedy avatar

Stargazers

JeongHoon Baek avatar

Watchers

 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.