DnsClient.NET icon indicating copy to clipboard operation
DnsClient.NET copied to clipboard

Resolv dns from root servers

Open AlexLaroche opened this issue 5 years ago • 1 comments

It would be nice if we can resolve a hostname using root servers and the recursion could be done by your library has resolver as show on the picture below. Actually, the only way, as I understand, to achieve that with your library is to wrap your library and instantiate a new LookupClient with the new dns servers each time. I have you a better solution to propose ?

image

AlexLaroche avatar Dec 09 '18 13:12 AlexLaroche

@AlexLaroche sorry for the very late reply, but you can actually build your own recursive resolver with this library and by using just one client instance, using the QueryServer APIs. I'm not sure if I will add that as a feature, it requires a lot of detail of how to resolve something efficiently etc. It is not as simple as resolving the main domain, but you might also have to follow reference records like CNAME to finally get an IP back...

But at least you can play with it and follow SOA records until you find a name server which can give you an answer for the Dns question ;)

MichaCo avatar Mar 05 '20 19:03 MichaCo