ipfs-webui icon indicating copy to clipboard operation
ipfs-webui copied to clipboard

Support DNSLink resolution

Open oed opened this issue 10 months ago • 4 comments

Is your feature request related to a problem? Please describe. Currently the explore feature of the webui supports pasting CIDs to resolve and explore content. However, if I want to explore the content of an ENS name, e.g. joelthor.eth, I need to first find a way to get the CID from ENS (for example, by going to the ens app and looking up the record). Since IPFS supports ENS resolution already, it would be a nice feature to have in the webui.

Describe the solution you'd like I should be able to enter an ENS name in the search bar and it should resolve to whatever content is set as the contentHash of that domain.

Describe alternatives you've considered N/A

Additional context N/A

oed avatar Feb 14 '25 12:02 oed

@oed Hey, Would love to work on this.

mansijoshi17 avatar Feb 15 '25 10:02 mansijoshi17

This is a sensible feature, but not specific to ENS. Applies to all DNSLink websites and IPNS too.

@mansijoshi17 if you want to work on this, a quick tip: on button click check if value is a valid CID. If it is not, or if codec is libp2p-key, then you have mutable name that needs to be resolved to immutable CID. To do so, prefix the value with /ipns/ (/ipns/jthor.eth) and then try to resolve mutable name it to immutable CID via ipfs.resolve RPC API. This way you will support ENS, DNSLink and also IPNS names.

lidel avatar Feb 15 '25 14:02 lidel

Yes agree it is sensible feature, and I have query regarding that. What if someone have you ENS name then they will be able to see your content on ipfs so there will be no privacy here right.

mansijoshi17 avatar Feb 17 '25 04:02 mansijoshi17

@mansijoshi17 It's already possible to look up any ENS name content by visiting https://<name>.eth.link. So it's not a privacy concern.

oed avatar Feb 17 '25 07:02 oed