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 hide hickory 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.
- Create
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
curl --header 'accept: application/dns-json' 'https://1.1.1.1/dns-query?type=1&name=cloudflare.com'
Lookup for IPv6
curl --header 'accept: application/dns-json' 'https://1.1.1.1/dns-query?type=28&name=cloudflare.com'
Lookup for TXT
curl --header 'accept: application/dns-json' 'https://1.1.1.1/dns-query?type=16&name=cloudflare.com'
Open questions
No response
Are you planning to do it yourself in a pull request ?
Maybe
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
/dnsaddrin web environments.Requirements
There are two options to implement this:
libp2p-dnsneeds to be internally refactored to hidehickorytypes 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/dnsaddrsince/dnscan 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