-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: resolve hostname
to multiple addresses when connecting to a node
#484
Comments
The Or It's also referenced by |
The current implementation uses But if we use I think the On the other hand, having the OS I think for general use case, it should be using |
Note that once we start using |
There is one problem, the if we use This could be solved with some global addresses like the ones we use here:
|
Actually I've found by default the resolver has However if I give it random useless IP, it actually still works. I'm wondering now if But if I give it no addresses at all, it then comes with an error... so how does this work? |
I've had to ask a question about this: https://stackoverflow.com/questions/74260036/how-does-nodejs-resolve-dns-with-fallback-when-all-servers-are-incorrect So for now, I'm going to use the resolver, but I'm going to set the addresses statically for now, and add |
Ok instead I can use For example on my windows computer, it says |
The DNS resolve timeout is the timeout PER dns packet. The number of times it tries multiplied by the timeout is actually what determines the maximum time spent doing the DNS query. The maximum timeout is largest 32 bit number The default of -1 actually results in an exponential backoff, starting at 5 seconds and doubling each time. So 5, 10, 20, 40 seconds... etc. We can leave the If we want to integrate it into our The maximum number is again the largest 32 bit number of 2147483647. |
Specification
We need to expand the functionality of establishing connections to handle multiple possible addresses when resolving a host name. The most notable use case here is when connecting to the test net. The hostname
testnet.polykey.io
can resolve to all of our seed nodes. We need to resolve this to multipleA
orAAAA
records and attempt connections to each one when connecting to a node.Additional context
testnet.polykey.com
Polykey-CLI#71NodeConnectionManager
#483Tasks
The text was updated successfully, but these errors were encountered: