# \[LibP2P\] Support for finding a node that should handle a key?

**URL:** <https://discuss.ipfs.tech/t/libp2p-support-for-finding-a-node-that-should-handle-a-key/4516>\
**Category:** Help\
**Tags:** libp2p, dht\
**Created:** [December 21, 2018, 11:56am UTC](https://discuss.ipfs.tech/t/libp2p-support-for-finding-a-node-that-should-handle-a-key/4516 "2018-12-21T11:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris-asl](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@chris-asl](https://discuss.ipfs.tech/u/chris-asl)\
**Post date:** [December 21, 2018, 11:56am UTC](https://discuss.ipfs.tech/t/libp2p-support-for-finding-a-node-that-should-handle-a-key/4516/1 "2018-12-21T11:56:36Z")

</div>

Hello,

I am trying out libP2P and mainly interested in its DHT.  
Following the [examples in the repo](https://github.com/libp2p/js-libp2p/tree/master/examples) I have setup 3 nodes, A, B and C, that form a chain (with the DHT config set).

That is, A dials B and B dials C.

Since in a DHT, the identifiers namespace is distributed among the nodes, I would like to use this so as to find to which node should a key be “announced” (using the providers).  
The key does not yet exist in the DHT. But still, when storing a key, it should be stored in the proper node.

**What I’ve tried**

1. `libp2p.dht.put`, followed by a `libp2p.dht.get` which returns only the value (obviously)
2. `libp2p.dht.put`, followed by a `libp2p.contentRouting.findProviders` with the key (that was previously stored using `libp2p.dht.put`), but getting no providers, since no node has “provided” that key.

**Is there support for this functionality?**
