Socket
Socket
Sign inDemoInstall

mdns-js-packet

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdns-js-packet

DNS Packet handling for mdns-js


Version published
Weekly downloads
298
increased by9.96%
Maintainers
1
Weekly downloads
 
Created
Source

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.

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('mnds-js-packet');

/*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.

FAQs

Package last updated on 06 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc