question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support DNSLink resolution

See original GitHub issue

All 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 format dnslink=[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.

Screen Shot 2021-01-15 at 1 12 19 PM

Example TXT record: dnslink=/ipfs/<CID for your content here>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bbondycommented, Feb 26, 2021

@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.

2reactions
jessicaschillingcommented, Jan 21, 2021

Love it! Small nit: would Open with IPFS or Open using IPFS be more accurate?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DNSLink - IPFS Docs
Learn how to map IPFS content to DNS names using DNSLink.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found