Cache DNS lookups

Running StorJ I noticed that it does a dns lookup for things every request/refresh, which happens every few seconds resulting in large amounts of dns requests as can be seen below:

It might be a good idea to cache the lookup results and only do a subsequent lookup if communication is unable to be established to the cached IP.

1 Like

Just like you I run pihole and it caches the requests. I even run a dedicated pihole container just for my storagenodes because of the amount of requests.

I’m pretty sure this is a result of Kademlia, which will eventually be removed anyway. So this will resolve itself when that happens.