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

Support the same DNSLink TLDs as Kubo and Rainbow #23

Closed
1 of 2 tasks
lidel opened this issue Feb 19, 2024 · 3 comments · Fixed by #56
Closed
1 of 2 tasks

Support the same DNSLink TLDs as Kubo and Rainbow #23

lidel opened this issue Feb 19, 2024 · 3 comments · Fixed by #56

Comments

@lidel
Copy link
Member

lidel commented Feb 19, 2024

Summary

By default, same TLDs should work in WS as in Kubo/Rainbow.

We want service worker gateway to be a drop-in option for people who currently load simple websites via Kubo or Rainbow.

Background

Kubo uses DoH at resolver.cloudflare-eth.com/dns-query for .eth. and .crypto names.

Unfortunately the endpoint does not have liberal CORS set up, and we use https://dns.eth.limo/dns-query for .eth instead. This means .crypto is broken, because it has no DNSLink resolver set up.

Solutions

Our options are:

@2color
Copy link
Member

2color commented Feb 23, 2024

By default, same TLDs should work in WS as in Kubo/Rainbow.

What is WS?

@lidel
Copy link
Member Author

lidel commented Feb 26, 2024

a typo, meant SW (Service Worker) :)

btw: we should be able to use resolver.cloudflare-eth.com/dns-query, CORS are fixes as noted in ipshipyard/waterworks-community#6 (comment)

@lidel
Copy link
Member Author

lidel commented Feb 26, 2024

For reference, https://github.com/ipfs/kubo/blob/master/docs/config.md#dns is how Kubo configuration works.

In browser we don't have OS-level resolver, so need to use som DoH endpoint for everything.

@SgtPooki Until ipfs/helia#454 is implemented, I think we could start with DoH at resolver.cloudflare-eth.com/dns-query for everything (it supports ICANN names too).

In the future we can add GUI for customizing global DoH resolver and ver .tld, but a global one will fix TLD support parity with Kubo and Rainbow immediatelly.

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 a pull request may close this issue.

2 participants