Open rendaw opened 4 years ago
@rendaw this is probably fine, although discuss.ipfs.io is good for discussions and go-ipfs is good for go-ipfs specific feature requests.
For me the killer IPFS feature is a distributed DNS
I'm absolutely a big fan of this!
seems to reject payloads that don't match a certain pattern
In go-ipfs ipfs name publish
it's valid to paths that look like /ipfs/CID
, /ipld/CID
or /ipns/{IPNS_ID or DNSLink}
, while that could be changed to a more permissive structure /foo/bar
I don't think it's necessary to achieve what you're looking for.
a distributed DNS
For many use cases you can already do this by simply using IPFS as is. In particular:
ipfs dht findpeer Qmxyz
), or more generally using the command ipfs swarm connect /p2p/Qmxyz
followed by ipfs id Qmxyz
.
/ipns/example.tld
/ipfs/CIDofMyArbitraryContent
and then just get the content via IPFS (e.g. ipfs get /ipns/Qmxyz
or ipfs dag get Qmxyz
)
What kind of scenario were you thinking of, do any of these options work for you?
Awesome! I was worried this wasn't in line with IPFS goals so it's a relief to hear!
My goal is, roughly, a consistent name that I could map to a server that might change over time, so I can hard code the address in scripts or configs, bookmark it, etc. (edit: and without having to get involved with the dns registrar mess)
The last suggestion might work, although it sounds like an extra-protocol extension, so for instance browsers with the IPFS extension wouldn't necessarily know what to do if they encounter it (if the browser gets a url that points to a document containing 34.123.123.4
or whatever, should it display the content, redirect, or show the http response of the ip http request with the current url in the address bar?). In this case I think the setup would be ipns name -> ipfs content addr -> document containing ip
?
The peer id one sounds pretty close and tbh I wasn't aware of it, but I think it has these restrictions:
/p2p/...
paths recognized in the same contexts as other paths? Ex: a hyperlink in a ipfs document containing href="/p2p/Qmxyz"
.
For me the killer IPFS feature is a distributed DNS, which should be IPNS to the best of my understanding. However the name system CLI in go-ipfs at least seems to reject payloads that don't match a certain pattern, I think strings starting with "/ipfs/"? It would be great to be able to use it to give a name to a server, for all the typical uses one would want from DNS (web, mail, ssh, server-server communication, etc). Is there anything preventing this restriction from being relaxed?
I googled for a while and couldn't find any discussion on this topic and TBH I'm not sure this is the right repository, so apologies if it isn't.