Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolv dns from root servers #38

Open
AlexLaroche opened this issue Dec 9, 2018 · 1 comment
Open

Resolv dns from root servers #38

AlexLaroche opened this issue Dec 9, 2018 · 1 comment

Comments

@AlexLaroche
Copy link

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

@MichaCo
Copy link
Owner

MichaCo commented Mar 5, 2020

@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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants