-
Notifications
You must be signed in to change notification settings - Fork 1k
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 /dnsaddr
in web environments (wasm-bindgen)
#5531
Comments
I have attempted this myself a few months ago but couldnt really settle on how I would want but do think we could go with 2, which would keep inline with what we are doing now. |
+1 (I just opened #5619 for this same thing, so I will close that as it's duplicate of this issue) |
Since
should we name this |
@dariusc93 do you already have a branch & pull request on the go for this? I need this too, happy to help work on it. |
Hi @DougAnderson444 did you implement this? Willing to upstream it? 😁 |
I did do it with a fetch to 1.1.1.1 in a few lines of code but didn't integrate it into libp2p |
@DougAnderson444 do you mean you resolve the dnsaddr before you give it to libp2p? We also do the same in Lumina. Actually we plan to write a proper integration (i.e. |
@oblique yes that's exactly it. I didn't have the time to do a proper integration (as per this issue), it was too far down on the TODO list for me personally. |
Description
Enable DNS lookup for web environments (wasm-bindgen). This can be achieved with DNS over HTTPS.
Motivation
I want to be able to use
/dnsaddr
in web environments.Requirements
There are two options to implement this:
libp2p-dns
needs to be internally refactored to hidehickory
types from WASM. Also we need to decide if we are going to support DoH to native systems as well, or if it will be just for WASM.libp2p-dns-websys
. The bad thing about this is to reimplement all the retry logic. The good part about this is that we need to implement support only for/dnsaddr
since/dns
can be handled well by *-websys transprots.Examples of querying DoH:
Lookup for IPv4
Lookup for IPv6
Lookup for TXT
Open questions
No response
Are you planning to do it yourself in a pull request ?
Maybe
The text was updated successfully, but these errors were encountered: