Several questions regarding IPFS

  1. Given an CID, how can I get the list of all nodes that hosted that content?
  2. I used IPFS desktop for the first time. When i opened the application, suddenly it’s connected to 411 peers. What’s the mechanism behind this peer-discovery system?
  1. Via the DHT, using Kubo in the CLI this can be done with ipfs dht findprovs <CID>
  2. There’s a built-in list of bootstrap nodes your node will query to ask for more peers. From there your node will ask all the peers it knows of for new peers as needed.

Happy to answer more Qs :slight_smile:.

1 Like

We now also save on disk a list of previously seen peers, theses are reused after the next restart.

1 Like