dns-suite.js/node_modules/dns-js
Daplie 28cfda23a6 going to start messing with dnspacket.js, so I wanted to commit 2017-01-18 17:07:21 -07:00
..
doc adding new files 2017-01-13 19:04:27 -07:00
examples adding new files 2017-01-13 19:04:27 -07:00
lib going to start messing with dnspacket.js, so I wanted to commit 2017-01-18 17:07:21 -07:00
test adding new files 2017-01-13 19:04:27 -07:00
.eslintignore adding new files 2017-01-13 19:04:27 -07:00
.eslintrc adding new files 2017-01-13 19:04:27 -07:00
.npmignore adding new files 2017-01-13 19:04:27 -07:00
.travis.yml adding new files 2017-01-13 19:04:27 -07:00
LICENSE adding new files 2017-01-13 19:04:27 -07:00
README.md adding new files 2017-01-13 19:04:27 -07:00
index.js adding new files 2017-01-13 19:04:27 -07:00
package.json adding new files 2017-01-13 19:04:27 -07:00

README.md

mdns-js-packet

Build Status

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

NEW LOCATION

This project was moved into it's own organisation. 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.

mdns-js-packet 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.