-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content routing hint via DNS records #6516
Comments
So.. I do a hacky version of this in the gateway I'm writing.. it roughly say that if it finds a
Then it tells IPFS to connect to that peer before doing the next requests (for content which that node will likely have). It's very basic but it helps a lot. I'd agree doing it as part of the dnslink resolution phase would also be cool. Obvious downsides are things like the id changing. |
I believe the discussion here is related to libp2p/notes/issues/14 - especially the fact that this can be done at the gateway level. |
Somewhat but they take very different approaches:
|
Sure, I got this difference, but apart from deliberately adding routing hints through DNSLinks, could we not also automatically add routing hints when we see a request for some content coming through the DNS resolver or the gateway? This second form of routing hints would have to expire after a while, depending on the "characteristic time" [1] [2] of the node's cache (i.e., how long we project that the content will stay in the node's cache). |
That gives us some believe that the user is looking for the content but not necessarily that they managed to find it. That's why libp2p/notes#14 uses bitswap.
That's what the bitswap issue is about, really. But yeah, both of these are content-routing side-channels. |
Note to self: I don't think we need to invent a new TXT record format. When DNSLink is resolved for a domain, IPFS node would check if dnsaddr exist for the domain, and use lookup result as additional provider discovery method. |
I'd rather have a new format. I might want |
Fair enough. But would records with |
Yes. It's "part" of the dnslink record. |
A common use-case for IPFS is to host websites using DNSLink. That is,
/ipns/foo.com
would resolve to/ipfs/Qm...
.This is the perfect place to stash additional content routing information:
The tricky part is somehow feeding this information through to the right place in go-ipfs.
The text was updated successfully, but these errors were encountered: