Closed 2color closed 6 months ago
N.b. I renamed chore!:
to fix!:
in the issue title because we want a release from this - chore
will not cause one but fix
will.
I wonder if we could take this opportunity to make DNS resolvers more configurable in the stack.
Right now the other place we use DNS resolvers is in @multiformats/multiaddr
to turn /dns/example.com
into /ip4/123.123.123.123
. We do this in browsers through hard-coded HTTP-DNS servers which are globally modifiable 🤮
I think we should:
Multiaddr.resolve
to take a list of resolvers or a resolver object*ma.resolve
during dialing@helia/ipns
to use the DNS resolvers from the Helia interface* = a resolver object rather than a simple list might give us a bit of flexibility to accommodate things like tld-specific resolvers.
Closing in favour of https://github.com/ipfs/helia-verified-fetch/pull/18
Description
As per https://github.com/ipfs/helia/pull/445#issuecomment-1980812623, this PR changes the API of
createVerifiedFetch
so as to allow passing a custom instance of Helia (for example, with a custom blockstore) in addition to customising thednsResolvers
.Notes & open questions
Change checklist