![]() Request an IPv6 record for the foo.com domain ![]() ClientRequest request = new ClientRequest("8.8.8.8") This behaviour can be changed by supplying an IRequestResolver to the client constructor. The request is first sent using UDP, if that fails (response is truncated), the request is sent again using TCP. Using the ClientRequest or the DnsClient class it is possible to send a request to a Domain Name Server. The libray also includes a small client and a proxy server. Outputs a human readable representation Response response = Response.FromArray(buffer) ![]() UdpReceiveResult result = await udp.ReceiveAsync() IPEndPoint google = new IPEndPoint(IPAddress.Parse("8.8.8.8"), 53) Īwait udp.SendAsync(request.ToArray(), request.Size, google) The library exposes a Request and Response classes for parsing and creating DNS messages. Version two and above use asynchronous operations.Īvailable through NuGet. Versions prior to version two (2.0.0) were written for.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |