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!
question from:https://stackoverflow.com/questions/65912856/resolve-obfuscated-ip-addresses-node-js-using-the-dns-module