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

fix(resolve): correctly handle .eth domains #6700

Merged
merged 3 commits into from
Oct 7, 2019
Merged

fix(resolve): correctly handle .eth domains #6700

merged 3 commits into from
Oct 7, 2019

Conversation

Stebalien
Copy link
Member

This should have been handled down inside the DNSLink resolver. Otherwise, we'll
break any name happens to end in .eth.

also fixes #6699

This should have been handled down inside the DNSLink resolver. Otherwise, we'll
break any name happens to end in `.eth`.

also fixes #6699
@aschmahmann
Copy link
Contributor

@Stebalien can you clarify if my understanding is correct.

The fix to #6699 is to use the updated go-is-domain library that accounts for ETH as a tld extension which deals with a bug at https://github.com/ipfs/go-ipfs/blob/d9f2bafa45693db2388544097089b3c7a5182110/core/corehttp/ipns_hostname.go#L27

Moving the .eth -> .eth.link code into the DNSLink resolver from the namesys resolver is for sanity/correctness, but is unrelated to #6699.

If the above is correct why are the tests being removed, the bug was in the HTTP API not in Namesys?

we'll break any name happens to end in .eth

Sure, although we don't currently have any resolver other than DNSLink that can end in .eth, right?

@Stebalien
Copy link
Member Author

Moving the .eth -> .eth.link code into the DNSLink resolver from the namesys resolver is for sanity/correctness, but is unrelated to #6699.

Yes.

If the above is correct why are the tests being removed, the bug was in the HTTP API not in Namesys?

Those tests used a fake DNSLink resolver (bypassing the real dnslink resolver). However, thanks for calling me on that. I've added the tests to the real DNSLink resolver's test suite.

@Stebalien
Copy link
Member Author

Sure, although we don't currently have any resolver other than DNSLink that can end in .eth, right?

/ipfs/QmFoo/foo.eth? I think?

@Stebalien
Copy link
Member Author

Ok, the API tests are stalling on master: #6703

@Stebalien Stebalien merged commit f97ed7d into master Oct 7, 2019
@Stebalien Stebalien deleted the fix/eth-link branch October 7, 2019 22:34
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.

gateway doesn’t load .eth domains from Host: header
2 participants