mdns-resolver
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

mdns-resolver

A Node.js module to resolve zeroconf .local domains using pure JavaScript.

Usage

const mdnsResolver = require('mdns-resolver')
 
mdnsResolver.resolve('hostname.local', 'A')
  .then(console.log)
  // 192.168.1.28
 
mdnsResolver.resolve4('hostname.local')
  .then(console.log)
  // 192.168.1.28
 
mdnsResolver.resolve6('hostname.local')
  .then(console.log)
  // fe80::20c:29ff:fea5:99f6

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    156
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    156
  • 1.0.0
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    6

Package Sidebar

Install

npm i mdns-resolver

Weekly Downloads

162

Version

1.1.0

License

MIT

Unpacked Size

5.83 kB

Total Files

5

Last publish

Collaborators

  • oznu