Giter VIP home page Giter VIP logo

mdns-recorder's Introduction

Build Status Version

mDNS Recorder

Dynamic Zero Config DNS Server with mDNS.

  • Listen for local network machines.
  • Give you a name server (DNS) and a web view.

It allow you to get all the power of ZeroConf outsider of the subnetwork.

Howto

  • Run mDNS Recorder inside your lan
  • Bind a name for mDNS Recorder
  • Install Avahi on servers in your lan (Mac just works, do nothing)
  • That's it, just use the web view :)

Deploy

# apt-get install libavahi-compat-libdnssd-dev libnss-mdns
# or
# yum install avahi-compat-libdns_sd-devel nss-mdns

sudo npm install -g mdns-recorder foreman
cat > ./env << 'EOF'
WEB_PORT=80
DNS_PORT=53
BIND_DNS_DOMAIN=yournet.lan
EOF

useradd mdns-recorder

sudo nf export \
    --out      /etc/init/ \
    --app      mdns-recorder \
    --user     mdns-recorder \
    --env      ./env \
    --cwd      /usr/lib/node_modules/mdns-recorder/ \
    --procfile /usr/lib/node_modules/mdns-recorder/Procfile

sudo start mdns-recorder

Dev

git clone https://github.com/j-san/mdns-recorder.git
cd mdns-recorder
npm install

npm start
# you should open http://localhost:3000/
# or query DNS
dig @localhost foo.subnet.lan  ANY -p 3053

npm test

Serve names with your mDNS DNS

  • Deploy a DNS record NS in the parent DNS server
  • Configure your dhcp / router to also use mdns-recorder for DNS
  • Hack your resolv.conf, if you have resolveconf installed, add name_servers_append=XX.XX.XX.XX to /etc/resolvconf.conf

Add a server to DNS index

Run as root on a new terget:

yum install avahi
/etc/init.d/avahi-daemon start

Licence

THE BEER-WARE LICENSE (Revision 42):

Jonathan Sanchez wrote this software. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

mdns-recorder's People

Contributors

j-san avatar jsanchezpando avatar

Stargazers

 avatar

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.