Skip to content
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

feat: accept DNS resolver when resolving DNSADDR addresses #373

Merged
merged 3 commits into from
Mar 11, 2024

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')

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
19 checks passed
@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))
Copy link

🎉 This PR is included in version 12.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SgtPooki
Copy link

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.

2 participants