Running a dht node is as simple as installing the DHT cli.
npm i -g @hyperswarm/cli
Then to run the node do:
hyperswarm-dht
NOTE: If the above prints a warning that your network is NOT holepunchable, you might wanna look into opening port 49737.
That's it! You probably run to run the above command as a daemon so it get's decent uptime.
The DHT node will store IPs and ports from other users through an udp interface. The network is quite redundant so no worries if you shutdown your node or if it crashes :) It also shouldn't consume too much bandwidth as it's just simple small udp messages that exchanged when peers do discovery.
We might upgrade the command set in the future so it's a good idea to hang in #dat on freenode so we can share updates and you can give us feedback.
Leaving a comment here that you are running a node for a bit will help us in this early phase of the rollout also so we can stay in touch :)
@martinheidegger if the ping command above returns a stable port, none - otherwise let me know and i'll make the script print the port it bound to