ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
812 stars 81 forks source link

feat!: use custom DNS resolver in @helia/ipns for DNSLink #466

Closed achingbrain closed 3 months ago

achingbrain commented 3 months ago

Uses the .dns property from https://github.com/ipfs/helia/pull/465 to resolve DNS TXT records.

This allows configuring discrete resolvers for different TLDs, unifies caching across different use of DNS (e.g. dnsaddr multiaddrs), etc.

Refs: https://github.com/ipfs/helia-verified-fetch/pull/13#issuecomment-1983944596 Fixes: #369

BREAKING CHANGE: requires @helia/interface@4.1.x or later, resolveDns has been renamed resolveDNSLink

Change checklist

achingbrain commented 3 months ago

https://github.com/ipfs/helia/pull/465 should be merged first to prevent this change causing a breaking change to cascade to other modules in this monorepo.