Deprecate /api/v0/dns #8607
Labels
exp/intermediate
Prior experience is likely helpful
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P3
Low: Not priority right now
topic/dns
topic/docs-ipfs
Topic docs-ipfs
Milestone
Problem
/api/v0/dns
does not work with DNSLinks that have/ipns/..
content paths (/api/v0/dns/ fails with "not a valid domain name" error on IPNS DNSLinks #6454), and/api/v0/resolve
works fine will all content paths./api/v0/resolve
a while ago. It is passing DNSLink names as content paths:/ipns/example.com
and they work fine no matter if IPNS is used or not./ipns/
is simply harmful, and even if we fix that, adds unnecessary complexity to the API surface./ipfs/{cid}
is hit.Proposed solution
Deprecate
/api/v0/dns
:--help
and hide from API docs/api/v0/dns
endpoint,but remove its custom DNS lookup code, and switch it to use/api/v0/resolve
internallyThe text was updated successfully, but these errors were encountered: