Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto create ipns dnslink for ens app #1627

Open
chrisschaub opened this issue May 10, 2023 · 1 comment
Open

Howto create ipns dnslink for ens app #1627

chrisschaub opened this issue May 10, 2023 · 1 comment

Comments

@chrisschaub
Copy link

chrisschaub commented May 10, 2023

Since the ens app has removed support for dnslink style contentHashes like /ipns/somedomain.com , it would be great to have some documentation on the best way to create ipns hashes for dnslink. I can see in the code there are now checks to make sure ipns is crypto, not plain text.

I would like to see a working example of creating libp2p-key compatible contentHashes that can be used in the ens app. IPNS is a pain to setup and republish, but a compatible ipns hash should allow most ifps gateways to resolve the dnslink.

The most related github issue is here: #849 (comment)

In short, I want to create a correctly encoded ipns name/key that can be used to get /ipns/somedomain.com so dnslink will take over. I understand not wanting plain text in the content hash, but it seems it's still possible to do by encoding the somedomain.com part, I just can't get any of the examples to work in the app, they all create strings that throw errors.

Thank you for your consideration.

@rickstaa
Copy link

rickstaa commented Dec 20, 2023

Hi @chrisschaub,

I agree with adding a section in the ENS-domain documentation to outline the recommended DNSLink approach. I recently followed the guidelines provided in the IPFS DNSLink documentation, available at DNSLink Concepts to serve a PNG that is stored on the IPFS network through a DNSLink entry.

This method proved effective, as you can see in the implementation on my IPFS subdomain. Including similar guidelines in our ENS-domain documentation could greatly assist others in implementing this method more efficiently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants