Git Product home page Git Product logo

node-dns-js's Introduction

dns-js

Build Status

DNS packet parser specifically built for mdns-js but it should be generic enough to do general dns stuff.

NEW LOCATION

This project was moved into it's own organisation and changed name from node-mdns-js-packet to node-dns-js. Please update any git remotes you might have pointing here.

git remote set-url origin https://github.com/mdns-js/node-dns-js.git

You probably want to have a look at native-dns-packet first and if that does do what you need, you might start looking at this.

dns-js should produce the same output as native-dns-packet, it even uses it's test fixtures and borrows some parts of it.

This was made before i knew about native-dns-packet but since that still has some bugs in handling some mDNS packets I cant use it.

example

var dns = require('dns-js');

/*some code that will get you a dns message buffer*/

var result = dns.DNSPacket.parse(message);

console.log(result);

Look at examples/dnsresolver.js for a more detailed example.

Contribute

I will gladly accept any contributions as pull requests. Just run npm run lint on the code first so that the coding style is kept somewhat consistent. I miss doing this myself from time to time and I won't go ballistic if anyone else forget but I would really appreciate it.

node-dns-js's People

Contributors

haakonnessjoen avatar johnwhitton avatar kmpm avatar kwyn avatar mrose17 avatar mycoboco avatar polymorpher avatar tberthe avatar

Watchers

 avatar  avatar

Forkers

jw-1ns

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.