Skip to content

Conversation

@achingbrain
Copy link
Member

Accept a DNS instance from @multiformats/dns when resolving DNSADDR addresses.

Gives the user flexibility to control which DNS servers are used to resolve TXT records.

Accept a `DNS` instance from `@multiformats/dns` when resolving
DNSADDR addresses.

Gives the user flexibility to control which DNS servers are used
to resolve TXT records.
import { dnsJsonOverHttps } from '@multiformats/dns/resolvers'

const resolver = dns({
'.': dnsJsonOverHttps('https://cloudflare-dns.com/dns-query')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth calling out what the dot here is for, or adding example with more specific tld resolver

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've linked to the @multiformats/dns docs to avoid replicating them here.

@achingbrain achingbrain merged commit 9b2df99 into main Mar 11, 2024
@achingbrain achingbrain deleted the feat/accept-dns-resolver-when-resolving-dnsaddrs branch March 11, 2024 14:36
github-actions bot pushed a commit that referenced this pull request Mar 11, 2024
## [12.2.0](v12.1.14...v12.2.0) (2024-03-11)

### Features

* accept DNS resolver when resolving DNSADDR addresses ([#373](#373)) ([9b2df99](9b2df99))

### Trivial Changes

* add or force update .github/workflows/js-test-and-release.yml ([#371](#371)) ([f61dec7](f61dec7))
* update project ([#372](#372)) ([9ce73b2](9ce73b2))
@github-actions
Copy link

🎉 This PR is included in version 12.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SgtPooki
Copy link
Contributor

related to ipfs/helia-verified-fetch#13 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants