How to listen to DHT communication

I have a follow up question to this here Getting the CID from DHT related communication

Perhaps you have some thoughts on how to achieve what I want to do?