1.0.2 • Published 3 years ago

mdns-resolve v1.0.2

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
3 years ago

mDNS

Simple Node.Js library that utilizes only native Node.Js modules to resolve Multicast DNS addresses to normal IPv4 or IPv6 addresses.

Example

Here is a simple example of how to use this library. (Do not forget to handle promise rejections)

(async () => {
    // Import library
    const resolve = require("./index.js")

    // Example usage
    const ip = await resolve("<domain>.local")
    console.log(ip)
})()

License

See LICENSE file