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

DNSLink chaining not resolving properly #1039

Closed
jakehemmerle opened this issue Dec 23, 2021 · 3 comments
Closed

DNSLink chaining not resolving properly #1039

jakehemmerle opened this issue Dec 23, 2021 · 3 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@jakehemmerle
Copy link

jakehemmerle commented Dec 23, 2021

What we did

I assume the extension is using this lib under the hood. IPFS Browser extension 0.11.0. The URL in browser (Brave) is ipns://wiki.polkadot.network , and I was also able to reproduce the error using a HTTP gateway (https://ipfs.w3f.community/ipns/wiki.polkadot.network).

Error

ipfs resolve -r /ipns/wiki.polkadot.network: could not resolve name: "wiki.polkadot.network" is missing a DNSLink record (https://docs.ipfs.io/concepts/dnslink/)

Expected behavior

browser -> _dnslink.wiki.polkadot.network -> _dnslink.polkadot-wiki.w3f.services -> resolve the wiki's hash

DNS TXT values

❯ dig +short TXT _dnslink.wiki.polkadot.network
"dnslink=/dnslink/polkadot-wiki.w3f.services"
                                                                                      
❯ dig +short TXT _dnslink.polkadot-wiki.w3f.services    
"dnslink=/ipfs/QmdncfsVm2h5Kqq9hPmU7oAVX2zTSVP3L869tgTbPYnsha"

Any misconfigurations on our part? Pretty sure we're doing it exactly how its described here. @ironoa

@jakehemmerle jakehemmerle added the need/triage Needs initial labeling and prioritization label Dec 23, 2021
@welcome

This comment was marked as resolved.

@salmad3
Copy link

salmad3 commented Feb 10, 2022

Hello, seems like the issue still needs to be triaged, thanks

@lidel
Copy link
Member

lidel commented Feb 10, 2022

Hey, apologies for slow reply.

There is a bug in our docs at https://dnslink.dev, it should be /ipns/ instead of /dnslink (go-ipfs ignores things other than /ipns/ and /ipfs/.

You should update your TXT record to use /ipns/ content path:

- dnslink=/dnslink/polkadot-wiki.w3f.services
+ dnslink=/ipns/polkadot-wiki.w3f.services

and it should solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

3 participants