Known DNSLink and IPNS should work in airplane mode #8245
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
topic/gateway
Topic gateway
topic/ipns
Topic ipns
When the user unplugs internet connection, previously visited DNSLink websites with low TXT record TTL will return error:
This is unfortunate, because the user's node has all the data required for loading the website.
Vendors like Brave should be able to load previously visited websites in offline mode using last-known DNSLink.
Improvement proposal
Update https://github.com/ipfs/go-namesys to:
This way the user can load
ipns://en.wikipedia-on-ipfs.org
(Brave) orhttp://en.wikipedia-on-ipfs.org.ipns.localhost:8080
(local gateway) even when in airplane mode.Open question: is this a good default for all use cases? If not, we could add
NoNamesysRecoveryCache
configuration option toGateway
to allow override of default behavior and force hard record expiration based on TTL and require DNS/IPNS lookup to always succeed.The text was updated successfully, but these errors were encountered: