-
Notifications
You must be signed in to change notification settings - Fork 14
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
Kademlia connect to peer by dns address #22
Comments
You have not setup your DNS correctly.
See details here: https://github.com/libp2p/specs/blob/master/addressing/README.md#dnsaddr-links But I think you don't want dnsaddr, but rather dns, dns4 or dns6 |
I believe my DNS is set correctly.
I'm trying to populate Kademlia with peers using the findClosestPeers method of the Kademlia class. I get the following error for every address that has /dns/ in the beginning.
Populating Kademlia with peers using the bootstrapRoutingTable method of the Kademlia class also returns an error:
Using dnsaddr or ip4 however works. |
dnsaddr does not mean the domain points to an ip address. It is an ipfs specific txt record. See the link above. |
I see. However, I am not sure that this helps me with the issue.
Can I use /dns/ addresses for boot nodes and dial them? |
That's an upstream bug in jvm-libp2p. You can work around it using dns4. |
We have a predefined list of nodes that we must connect to. We’re bootstrapping using Kademlia. However, we encounter an error when passing the address of the node.
The following code is able to reproduce the problem:
DnsAddr is imported from
org.peergos.protocol.dnsaddr.DnsAddr
.The peer we are trying to connect is:
/dns/0.westend.paritytech.net/tcp/30333/p2p/12D3KooWKer94o1REDPtAhjtYR4SdLehnSrN8PEhBnZm5NBoCrMC
We tried changing the format of the address but it didn’t work out:
/dnsaddr/0.westend.paritytech.net/p2p/12D3KooWKer94o1REDPtAhjtYR4SdLehnSrN8PEhBnZm5NBoCrMC
The text was updated successfully, but these errors were encountered: