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

Change DNS resolution endpoint to allow ipns recursive resolution #959

Merged
merged 2 commits into from
Jan 17, 2021

Conversation

Ktl-XV
Copy link
Contributor

@Ktl-XV Ktl-XV commented Jan 15, 2021

This fixes #877. I couldn't add any tests because, from what i saw, readDnslinkFromTxtRecord always get mocked. If this is a problem, and someone can point me to the right direction I could add tests.

@Ktl-XV Ktl-XV requested a review from lidel as a code owner January 15, 2021 20:04
@ipfs ipfs deleted a comment from welcome bot Jan 15, 2021
@jessicaschilling
Copy link
Contributor

@lidel, I believe this one is for you 😊

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @Ktl-XV ❤️

Given current codebase, I believe we could make it bit faster by passing ?r=false (we only want to know if DNSLink is present, dont need to resolve recursively, especially when people start using /ipns/{libp2p-key} in DNSLink). Will add it before merging.

@lidel
Copy link
Member

lidel commented Jan 17, 2021

Confirmed DNSLink detection is fast, because it does not resolve libp2p-key based /ipns/ paths:

2021-01-18--00-10-07

Given current codebase, I believe we could make it bit faster by passing
?r=false (we only want to know if DNSLink is present, dont need to
resolve recursively, especially when people start using
/ipns/{libp2p-key} in DNSLink)
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

Successfully merging this pull request may close these issues.

Some URL don't get redirected to the local Web-Gateway
3 participants