# How would, or could, a web server be addressed?

**URL:** https://discuss.ipfs.tech/t/how-would-or-could-a-web-server-be-addressed/5021
**Category:** Ecosystem and Usage
**Created:** [March 13, 2019, 5:19pm UTC](https://discuss.ipfs.tech/t/how-would-or-could-a-web-server-be-addressed/5021 "2019-03-13T17:19:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nottoseethesun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/nottoseethesun/32/2327_2.png) [@nottoseethesun](https://discuss.ipfs.tech/u/nottoseethesun)
#### Post date: [March 13, 2019, 5:19pm UTC](https://discuss.ipfs.tech/t/how-would-or-could-a-web-server-be-addressed/5021/1 "2019-03-13T17:19:42Z")

</div>

It seems that services, as distinguished from files, are out of scope for ipfs. Or maybe not?

Would it be feasible, and if so, would it be practical, to - for example - load a website from an endpoint designated by an ipfs hash? Specifically, what is meant is not to retrieve the files by themselves, but to access a web app from an endpoint designated by an ipfs hash.

So for example, some kind of alternative content would need to be provided to stand in for the file content hash.

Or perhaps there is a related protocol that would be used for this, besides http?

---

<div class="post-metadata">

### Author: ![aphelionz](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/aphelionz/32/1486_2.png) [@aphelionz](https://discuss.ipfs.tech/u/aphelionz)
#### Post date: [March 13, 2019, 6:09pm UTC](https://discuss.ipfs.tech/t/how-would-or-could-a-web-server-be-addressed/5021/2 "2019-03-13T18:09:05Z")

</div>

This is the prime use case for two IPFS features - IPNS and \_dnslink

IPNS allows you to “publish” a mutable content hash to an IPNS name. In other worse, your IPNS name becomes a pointer to a content hash that you specify. This is accomplished with the `ipfs name publish` command. Publishing is based on IPFS key pairs and uses the key pair of the IPFS node as default. If you want, you can use `ipfs key gen` to create a new named key to use as well.

\_dnslink allows you to point a DNS address to the IPNS name. You would create a TXT entry in your DNS records called \_dnslink.yourdomain.com, with the value set to your IPNS name: `/ipns/Qm.....`

Finally, since IPNS resolution can be slow, and if you don’t mind updating your \_dnwlink entry a lot more frequently, you can use it to point directly at the IPFS hash instead of the IPNS name.

Links  
IPNS: [https://docs.ipfs.io/guides/concepts/ipns/](https://docs.ipfs.io/guides/concepts/ipns/)  
\_dnslink: [https://docs.ipfs.io/guides/concepts/dnslink/](https://docs.ipfs.io/guides/concepts/dnslink/)
