Skip to content

45 seconds to query dns #240

Answered by MichaCo
TheButlah asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure why you have that many interfaces on your machine, but if those are configured with invalid or non-responsive DNS servers, then, yea, it'll take some time to go through all of them and wait for timeouts. That's basically what the client would have to do until it finds a server which returns a response...

To fix that, you can define the dns server you want the LookupClient to use, e.g. a public one, 1.1.1.1
that should give you a reply right away because it doesn't have to go through a long list of DNS servers which probably don't exist.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheButlah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #239 on April 05, 2025 08:53.