multicast-dns | Experimental mDNS Rust wrapper around Avahi C libraries
kandi X-RAY | multicast-dns Summary
kandi X-RAY | multicast-dns Summary
multicust_dns - is essentially a Rust wrapper around Avahi that internally uses AvahiDaemon to manage host name and browse services on the local network. Requires avahi-common, avahi-client and dbus-1 libs to compile sucessfully. For non-linux platforms that don't have required avahi libs, fake implementation is used. See Multicast DNS Utils command line app as an example.
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 multicast-dns
multicast-dns Key Features
multicast-dns Examples and Code Snippets
Community Discussions
Trending Discussions on multicast-dns
QUESTION
Can some please explain how to fix the following (npm audit):
...ANSWER
Answered 2021-May-25 at 19:12You should check your package-lock.json
if dns-packet
was indeed updated to 5.2.2 or a higher version to fix the Memory Exposure vulnerability.
You can add the least required version to resolutions
in package.json
and run npx npm-force-resolutions
before npm install
:
QUESTION
i have a huge problem with my project in react. I'm trying to update the libraries on my project but seems something wrong happens.
This is the package.json
...ANSWER
Answered 2021-May-26 at 12:48A few developers are now slowly getting this hopefully temporary problem when they update their projects.
For example: https://github.com/facebook/create-react-app/issues/11012
Recommendation is to leave this on the todo list, and wait a few days while the package developers fix this (at least for the packages that already have been notified)
Then run audit fix
again
In the meantime, one error in particular the 'high' severity one...
QUESTION
I have an IOT device ruining a mDNS responder, is there a way to find the device through a react-native/Expo app?
I have found a react-native library (react-native-zeroconf). However, it requires react-native-link which expo does not support.
I have also found a pure Java Script library (multicast-dns). However, I'm not sure whether it is possible to port that to react-native/Expo.
Should I detach and use native modules? I'm keeping that as a last resort for now.
...ANSWER
Answered 2018-Jan-20 at 03:03The first one you can do with expo but you will need to detach.
The second will not work at all because it assumes the node API which does not exist in ReactNative.
QUESTION
I'm using the multicast-dns
node module to attempt making this work.
Looking up custom.local
in the browser gives me the console message I setup, but I'm unable to see my actual server running (which is doing so at localhost:12345
, where 12345
is a dynamic number). I want to be able to see my local server when visiting custom.local
. Is this possible?
Here's some code:
...ANSWER
Answered 2017-Oct-15 at 08:57Quoting cfreak:
You can't put port numbers in DNS. DNS is only for looking up an IP by name. For your browser to see it by the name alone you need a proxy program in front of your service or you need to run the service itself on port 80. Port numbers really shouldn't be dynamic. You should specify it in the setup of your service.
That answers my question and offers next steps. Thanks!
UPDATE: Figured out what I was trying to do. Here's some code!
FOUND A SOLUTION, WOOP WOOP!
I'm using this module, but tweaked the source a bit (only because I have dynamic ports, because I feel like it).
QUESTION
When I connect to the Windows IoT board normally, accessing "minwinpc.local:8080" to get to the IoT device portal works fine in the same network. However, when the same is done through the built-in SoftAP (using WiFiDirectAdvertisementPublisher
), the hostname cannot be resolved. The device portal is still reachable if accessed directly through the IP (by default 192.168.137.1 on SoftAP).
This behaviour can also be observed using custom services – i.e. hostname resolution only works through external networks, but not if the IoT board itself is hosting a SoftAP.
Is there any configuration that I need to apply or any settings I need to configure using PowerShell in order to enable name resolution on the SoftAP interface?
Update
Further testing:
Initial AJ_SoftAPSsid
- Windows client: minwinpc:8080 works fine, minwinpc.local:8080 does not work
- macOS client and Windows in VMware: minwinpc:8080 does not work, minwinpc.local:8080 works fine
iPhone hotspot with DragonBoard as client
- Windows client: minwinpc:8080 works fine, minwinpc.local:8080 works fine
- macOS client and Windows in VMware: minwinpc:8080 does not work, minwinpc.local:8080 works fine
Custom SoftAP hosted by DragonBoard
- Windows client: minwinpc:8080 works fine, minwinpc.local:8080 works fine
- macOS client and Windows in VMware: minwinpc:8080 does not work, minwinpc.local:8080 does not work, only direct access through IP works (192.168.137.1:8080).
Related questions:
...ANSWER
Answered 2017-Aug-10 at 17:05The windows client is automatically attempt to enrich the minwinpc:8080 to become minwinpc.local:8080. When it is a virtual client, it is dependant upon the host OSX name resolution, which doesn't do that automatic hostname enrichment upon lookup.
I see the following from: https://msdn.microsoft.com/en-us/library/windows/desktop/dd815243(v=vs.85).aspx
... In addition, SoftAP does not provide the DNS resolution. In the case where an external DNS server is not made available using Internet Connection Sharing (see the discussion of ICS below), fully qualified domain name (FQDN) resolution between any two computers or devices connected with the SoftAP, including the computer hosting the SoftAP, would only work if both entities mark the network type of the SoftAP network as PRIVATE (HOME or WORK in the network category pop-up). Since the machine hosting the SoftAP always marks the SoftAP network type as PRIVATE, only the computers or devices connected to SoftAP need to mark the SoftAP network type as PRIVATE in order for FQDN resolution to work...
Which sounds like what you are experiencing is the intended behavior of SoftAP. If you would like to see this in action, flush the dns cache on the client and then wireshark the request, on windows, you should see at least two DNS requests when attempting connections to minwinpc:8080.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install multicast-dns
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
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