This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Support for /api/v0/dns/ #501
Closed
Description
(I was unable to find this in code nor seen any discussion in Issues)
There is an API that returns dnslink value defined in TXT
DNS record of arbitrary hostname.
I am using this API in Firefox addon for detecting if requests to a host can be loaded from IPFS instead of HTTP.
Not sure if this is a bug or a feature, but /api/v0/dns/
provided by go-ipfs is not supported by js-ipfs-api right now.
Is this on the roadmap?
Examples:
- http://127.0.0.1:5001/api/v0/dns/ipfs.io (dnslink present):
{"Path":"/ipfs/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU"}
- http://127.0.0.1:5001/api/v0/dns/google.com (no dnslink):
{"Message":"Could not resolve name.","Code":0}