ipfs / ipfs/kubo

Command for resolving DNSaddr

Open
#8,487 1 comment 1 reaction 0 assignees View on GitHub
kind/enhancement need/triage
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

[dnsaddr](https://github.com/multiformats/multiaddr/blob/master/protocols/DNSADDR.md) is a protocol that instructs the resolver to lookup multiaddr(s) in DNS TXT records for the domain name in it's value section.

## Current state

- We have `ipfs dns` which resolves [DNSLink](https://dnslink.dev/)
- We don't have anything for [`/dnsaddr/` addresses](https://github.com/multiformats/multiaddr/blob/master/protocols/DNSADDR.md).
- `ipfs swarm connect /dnsaddr/fooo` works, but requires online mode and then trying to analyze `ipfs swarm peers` list is a guessing game will only show a subset of addrs that are actively utilized.

## Proposed enhancement

We are missing a utility command for resolving `/dnsaddr/example.com` and getting the list of multiaddrs published as TXT records on `_dnsaddr.example.com`

Design TBD, could be a dedicated command, or just like with DNSLink, we could collapse it into `ipfs resolve`.

## Value to the ecosystem

This would be highly useful in browser and other contexts where DHT is not fast enough.
For example, gateways could announce own peers and links to public gateway could trigger DNSaddr resolution and act as an opportunistic content routing hint.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.