Pin IPNS entries?

You mean like cache the entry? I think this already happens to some extent. It seems like the part that takes a long time is trying to find newer/better entries from the DHT.

There are already timeout parameter and DHT limit parameters that can cut down on how long IPNS resolution takes if you don’t care about having the newest value. To copy paste from a different thread, you can do a couple of things to speed up name resolution if you don’t care about the newest record.

# stream DHT entries as they're returned
ipfs name resolve --stream /ipns/...

# look for 2 records from the DHT to resolve the address, and only take up to 5 seconds
ipfs name resolve --dhtrc 2 --dhtt 5s /ipns/ 
1 Like