Hi all,
This is how to do it:
Download the following assembly from CodePlex:
DnDns and PocketDnDns - A .NET DNS Client Resolver Library[
^]
Implement the following piece of code (
DnsQueryResponse
contains all the desired information):
DnsQueryRequest request = new DnsQueryRequest();
DnsQueryResponse response = request.Resolve("192.168.0.1", "_ldap._tcp.domain.local", DnDns.Enums.NsType.SRV, DnDns.Enums.NsClass.ANY, System.Net.Sockets.ProtocolType.Tcp);
Kind regards,