Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 612 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 612 Bytes

TravelRepublic.DnsClient

A dns client library based on DnDns for .NET.

Build status

###Install

PM> Install-Package TravelRepublic.DnsClient

###Get Started

var client = new DnsClientBuilder()
	.WithDnsServer(new IPEndPoint(IPAddress.Parse("8.8.8.8"), 53))
	.Build();

var response = client.Query("www.google.com", NsType.A, NsClass.INET, ProtocolType.Udp);
var record = (ARecord)response.Answers[0];