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

如何搭建dht服务器,没有找到相关的代码,请问有没有热心大佬给个地址或者方法 #2676

Closed
xingkongwangbin opened this issue Dec 27, 2023 · 3 comments

Comments

@xingkongwangbin
Copy link

  • 如何搭建dht服务器,没有找到相关的代码,请问有没有热心大佬给个地址或者方法

  • 可以这里联系也可以发送邮箱[email protected]

@xingkongwangbin
Copy link
Author

                "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
		"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
		"/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
		"/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
		"/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
		"/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",

请问这种dht服务器如何搭建

@godcong
Copy link
Contributor

godcong commented Dec 27, 2023

  1. you need buy a domain
  2. setting the domain txt rule. see detail https://github.com/multiformats/multiaddr/blob/master/protocols/DNSADDR.md

@Jorropo
Copy link
Contributor

Jorropo commented Dec 28, 2023

@godcong this isn't needed.

@xingkongwangbin any DHT node that is participating in the DHT can be here.
This example shows this working: https://github.com/libp2p/go-libp2p/tree/master/examples/chat-with-rendezvous
Here is bootstrap saving in Kubo (we collect people we happen to connect to and use them for the next bootstrap): ipfs/kubo#8856

@p-shahi p-shahi closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants