# How DHT decides from which node to retrieve resource?

**URL:** <https://discuss.ipfs.tech/t/how-dht-decides-from-which-node-to-retrieve-resource/5646>\
**Category:** Uncategorized\
**Created:** [June 13, 2019, 9:36pm UTC](https://discuss.ipfs.tech/t/how-dht-decides-from-which-node-to-retrieve-resource/5646 "2019-06-13T21:36:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jasonzhouu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jasonzhouu/32/2682_2.png) [@jasonzhouu](https://discuss.ipfs.tech/u/jasonzhouu)\
**Post date:** [June 14, 2019, 12:09am UTC](https://discuss.ipfs.tech/t/how-dht-decides-from-which-node-to-retrieve-resource/5646/2 "2019-06-14T00:09:13Z")

</div>

> [@File Discovery in IPFS](https://discuss.ipfs.tech/t/file-discovery-in-ipfs/1320/3):
>
> There are actually two parts to this question. Content Routing When you know the file you’re looking for, how do you actually find and download it? That is, how does IPFS resolve IPFS paths? The answer to that is a mixture of the DHT and Bitswap. You ask the DHT which nodes have the content you’re looking for, establish connections to those nodes, and then ask those nodes for content (over Bitswap). Search When you don’t know what you’re looking for but you want content that matches a set of…

---

_[View the full topic](https://discuss.ipfs.tech/t/how-dht-decides-from-which-node-to-retrieve-resource/5646)._
