node_mdns | mdns/zeroconf/bonjour service discovery add-on for node.js
kandi X-RAY | node_mdns Summary
kandi X-RAY | node_mdns Summary
mdns/zeroconf/bonjour service discovery add-on for node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node_mdns
node_mdns Key Features
node_mdns Examples and Code Snippets
Community Discussions
Trending Discussions on node_mdns
QUESTION
I know on a Mac OSX I can run this command: dns-sd -q a5b3ef18-2e66-4e24-91d2-893b93bbc1c1.local
and it returns an IP address. Can I do this in Node.js? It seems like the dns
module is mainly used for website -> IP
, not IP -> IP (resolved)
conversions. Any help is appreciated. Thanks!
Note: The imputted addresses will be mDNS, converted by Bonjour. I found the Bonjour npm package/library, but don't think it works in this case. Also, I found mdns which has the mdns.dns_sd
function but I cannot seem to figure out how to use it in my case.
Thanks!
...ANSWER
Answered 2021-Jan-27 at 17:50I found a Node module that does exactly what you need. Multicast-DNS is capable of querying mDNS IPs to the standard IP format. The snippet on their README does what you need:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node_mdns
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page