Support DNSLink resolution
See original GitHub issueAll of this works only when IPFS Resolve Method is not Disabled and not Ask.
- DNSLink lookup works only for pages with 5xx response codes without a check for
x-ipfs-path
header and according to the IPFS Resolve Method settings above
How DNSLink lookup works:
- it looks for a DNS
TXT
record of next formatdnslink=[value]
for_dnslink.[hostname]
domain. It should meet current dns preferences and use DoH and Secure DNS according to the settings. DNS requests should be cached and work without sending second requests to DNS servers for same hostname. - If the lookup is successful and the dnslink is present it shows the Open in IPFS button in location bar, the button navigates to
ipns://[hostname]
For pages with other response codes we check for x-ipfs-path
header in response and according to the IPFS Resolve Method settings we show the Open in IPFS button in location bar without lookups, the button navigates to ipns://[hostname]
We should not show the botton for IPFS Gateway urls.
Example TXT
record:
dnslink=/ipfs/<CID for your content here>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:23 (9 by maintainers)
Top Results From Across the Web
DNSLink Standard
It can resolve DNSLinks automatically and load the content with help of a local IPFS gateway. It will also recover from HTTP server...
Read more >DNSLink support | IPFS Docs
Support for DNSLink in IPFS Companion. DNSLink maps a domain name to an IPFS address using DNS TXT records. Read the DNSLink guide...
Read more >dnslink resolution in go-ipfs - Go Packages
It even supports recursive resolution. Suppose you have three domains with dnslink records like these: > dig TXT foo.com foo.com.
Read more >DNSLink for Python - PyPI
As RFC 1034 specifies, DNSLinks also supports chaining. If the record's protocol type is dnslink , it will try to resolve records of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@diracdeltas @spylogsster @lidel how about so we can make progress here we limit to only when an IPFS selection is made away from Ask and not Disable. I.e. only for Gateway and Local options. We can discuss what to do with Ask in a different issue.
Love it! Small nit: would
Open with IPFS
orOpen using IPFS
be more accurate?