News for hackers. Stuff that matters.
Re:Hosting a simple static site on IPFS by lcswi on Wednesday September 16, 2015 @03:21PM (#10229106)
That's a horrific url though, any way to 'humanise' that?
Re:Hosting a simple static site on IPFS by _prometheus on Wednesday September 16, 2015 @04:10PM (#10229481)
Yes. (IPFS author here)

1. Add a TXT record to DNS <domain> with:

   dnslink="/ipns/QmWGb7PZmLb1TwsMkE1b8jVK4LGceMYMsWaSmviSucWPGG"
2. should be able to use https://ipfs.io/ipns/<domain>

See it in action here: https://ipfs.io/ipns/ipfs.io

WARNING: IPNS is still under dev. it's not robust yet, convergence may not be perfect.

Re:Hosting a simple static site on IPFS by RX14 on Wednesday September 16, 2015 @07:16PM (#10230634)
Also - if I remember correctly - if you visit ipfs.io with the Host header set to foo.com, it will return /ipns/foo.com.
Re:Hosting a simple static site on IPFS by lgierth on Wednesday September 16, 2015 @08:02PM (#10230800)
Yes exactly, the IPFS daemon running there looks at the Host: header and uses it to build an `/ipns/<the-header>` path which it will resolve and respond accordingly.
Re:Hosting a simple static site on IPFS by viraptor on Wednesday September 16, 2015 @09:09PM (#10231000)
Is there any place I can track IPNS completeness? I've seen issues / PRs / commits related to this, but just wondering if I can find a single-page/issue tracker.
Re:Hosting a simple static site on IPFS by whyrusleeping on Thursday September 17, 2015 @01:06AM (#10231674)
Just made an issue for this after seeing your comment: https://github.com/ipfs/go-ipfs/issues/1716

There should be some progress on ipns pretty soon, i'm working on a 'phase one' fix that improves upon the current situation, and will be replaced later by our final implementation once the specification and requirements for it are complete.

Re:Hosting a simple static site on IPFS by chipsy on Wednesday September 16, 2015 @07:31PM (#10230698)
How is "ownership" over a domain resolved?
Re:Hosting a simple static site on IPFS by lgierth on Wednesday September 16, 2015 @08:03PM (#10230806)
Just classic DNS -- you set a TXT record on that domain, and IPFS uses standard DNS resolution to get the value of it.
Re:Hosting a simple static site on IPFS by nicklaf on Wednesday September 16, 2015 @03:49PM (#10229324)
From section 3.7.2 of the IPFS paper [1], on IPNS ("Human Friendly Names"):

While IPNS is indeed a way of assigning and reassigning names, it is not very user friendly, as it exposes long hash values as names, which are notoriously hard to remember. These work for URLs, but not for many kinds of offline transmission. Thus, IPFS increases the user-friendliness of IPNS with the following techniques.

[1] https://github.com/ipfs/papers/raw/master/ipfs-cap2pfs/ipfs-...

Re:Hosting a simple static site on IPFS by robsyme on Wednesday September 16, 2015 @03:53PM (#10229360)
I think so, yes. IPNS can bootstrap of DNS if you want. By adding a DNS TXT record of the form "dnslink=/ipfs/longhorriblehashhere", you can have paths like /ipns/example.com/2015/09/15/hosting-a-website-on-ipfs/.

For example, the ipfs.io site is hosted on ipfs/ipns, and available through the gateway at https://gateway.ipfs.io/ipns/ipfs.io/