anyone know if there is a "nice" way do to MDNS requests in C# ? I know that I can do DLL import of dnsapi.dll but I didn't find any good examples of making MDNS request using this DLL.
-
Could this help you ? github.com/richardschneider/net-mdns– ArcordCommented Jun 30, 2020 at 12:13
-
@Arcord I have seen this repo, the problem is that I need to do mDNS requests without any external repos like nugets or github. I know that I can do raw socket but I'm trying to avoid it for now.– M.PintoCommented Jun 30, 2020 at 12:24
-
Shoudn't you also avoid to use that DLL in that case ? :-) It's a little bit like a nuget package... the only difference is that you are either installing the dependency properly (nuget) or poorly (dll import). But yes you will have to use directly the socket if you want to implement it yourself.– ArcordCommented Jun 30, 2020 at 13:52
-
did you look at the pinvoke example? pinvoke.net/default.aspx/dnsapi.DnsQuery– jdwengCommented Jun 30, 2020 at 13:59
Add a comment
|