# Host website using IPFS, IPNS and, DNSLink in 5mins

**URL:** <https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352>\
**Category:** Docs & Tutorials\
**Tags:** go-ipfs, ipns, files\
**Created:** [September 23, 2019, 1:04pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352 "2019-09-23T13:04:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [September 23, 2019, 1:04pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/1 "2019-09-23T13:04:13Z")

</div>

A Complete Tutorial to Host a Website on IPFS and using IPNS and DNSLink to get human-friendly-names for your websites.

> **[Home - SimpleAsWater](https://simpleaswater.com/ipfs/tutorials/hosting_website_on_ipfs_ipns_dnslink?ref=ipfs_forum)**
>
> SimpleAsWater, a Community Platform to Learn, Build, Collaborate & Discover Dapps and Web 3.0 Stories.

---

<div class="post-metadata">

**Author:** ![talb](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/talb/32/3022_2.png) [@talb](https://discuss.ipfs.tech/u/talb)\
**Post date:** [September 24, 2019, 7:28am UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/2 "2019-09-24T07:28:44Z")

</div>

Good article!

Two things I didn’t understand:

- Hosting you website using an hosting service like AWS or GoDaddy would be useless if you want to do a website for IPFS, because it would be accessible only via HTTP. You only want to have a DNS record for your domain name, so a registrar (without the hosting service) is the way to go IMO.
- I don’t know why you wrote “Leave it blank” in the Name field of the DNS record, it should contain your domain name.

Besides, I would have talked about something else in your article: how to update your record. There are 2 solutions:

1. If you store an IPFS CID in DNSLink, hopefully the website of your registrar has a form to update the record whenever you change your website. To have a quick DNS propagation, set the TTL (Time-to-Live) field to 0 (the record is uncached directly after it is used).

2. Another way to do this is to store an IPNS record in DNSLink:

| Name | Record type | TTL | Value |
| --- | --- | --- | --- |
| [simpleaswater.com](http://simpleaswater.com) | TXT | 99999 | “dnslink=/ipns/\<your IPNS record\>” |

This way your DNSLink never changes, so you can set the TTL field to what you want. Whenever you want to update your website, you republish the IPNS record and you don’t need to ask your registrar to change the DNS record. The main issue with this solution is that IPNS is very slow, it takes about 2 minutes for an IPNS lookup. Hopefully IPNS over PubSub will allow to shorten lookup time.

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [September 28, 2019, 1:59pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/3 "2019-09-28T13:59:43Z")

</div>

Hi @talb. Was busy with my exams. Sorry for the late reply:)

> [@talb](#):
>
> Hosting you website using an hosting service like AWS or GoDaddy would be useless if you want to do a website for IPFS, because it would be accessible only via HTTP. You only want to have a DNS record for your domain name, so a registrar (without the hosting service) is the way to go IMO.

I totally agree with that. But just to make it easy for people to understand the article, I used “hosting provider”, which a lot of people know about(even non techies).

> I don’t know why you wrote “Leave it blank” in the Name field of the DNS record, it should contain your domain name.

Also, this one is a mistake. As I was using AWS, the “[simpleaswater.com](http://simpleaswater.com)” was pre-filled. This may confuse other people. I will change this one.

I also agree with providing more info about updating the website. I just wanted to keep it simple and short. But I think I should add “updating website” too.

Thanks for your valuable suggestions:) I will change the article ASAP.

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [September 28, 2019, 2:17pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/4 "2019-09-28T14:17:29Z")

</div>

You might be interested in what Pinata and Cloudflare offer: [https://medium.com/pinata/how-to-easily-host-a-website-on-ipfs-9d842b5d6a01](https://medium.com/pinata/how-to-easily-host-a-website-on-ipfs-9d842b5d6a01)

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [September 28, 2019, 4:09pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/5 "2019-09-28T16:09:49Z")

</div>

They do provide a really easy and reliable way to host website on IPFS. The above article is more of a DIY post.

---

<div class="post-metadata">

**Author:** ![lyrx](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lyrx/32/3019_2.png) [@lyrx](https://discuss.ipfs.tech/u/lyrx)\
**Post date:** [September 28, 2019, 5:52pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/6 "2019-09-28T17:52:17Z")

</div>

It is basically the same idea in both articles. A very promising new way to do publishing. However it cannot yet be done by non-technical people …

---

<div class="post-metadata">

**Author:** ![F3Joule](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/f3joule/32/4120_2.png) [@F3Joule](https://discuss.ipfs.tech/u/F3Joule)\
**Post date:** [December 3, 2019, 12:53pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/7 "2019-12-03T12:53:52Z")

</div>

@vasa-develop, wanted to check your tutorial, but SimpleAsWater link seems to be broken.

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [December 4, 2019, 7:15am UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/8 "2019-12-04T07:15:55Z")

</div>

Hi @F3Joule

We just updated [simpleaswater.com](http://simpleaswater.com) to Ghost CMS.  
Here is the article: [https://simpleaswater.com/hosting-website-using-ipfs](https://simpleaswater.com/hosting-website-using-ipfs)  
Also, here is the index of all the content on IPFS: [https://simpleaswater.com/ipfs](https://simpleaswater.com/ipfs)

Let me know if you face any other problems 🙂

Cheers,  
Vaibhav

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [December 4, 2019, 7:44am UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/9 "2019-12-04T07:44:28Z")

</div>

**The article has been shifted to**

> **[IPFS Tutorial: Host a website using IPFS, IPNS, and DNSLink](https://simpleaswater.com/hosting-website-using-ipfs/)**
>
> This is a quick tutorial that will teach you how to:
> 
> \* Host a simple static website on IPFS.
>    
> \* Use IPNS to keep a single id(address) when you change the content of the site
>    
> \* Use DNSLink to substitute the IPNS id with human-readable...

---

<div class="post-metadata">

**Author:** ![turkiye](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@turkiye](https://discuss.ipfs.tech/u/turkiye)\
**Post date:** [April 3, 2020, 7:36pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/10 "2020-04-03T19:36:54Z")

</div>

how connect .crypto or .zil domains to local installed ipfs and host web site .

---

<div class="post-metadata">

**Author:** ![vasa-develop](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vasa-develop/32/1749_2.png) [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Post date:** [April 3, 2020, 9:02pm UTC](https://discuss.ipfs.tech/t/host-website-using-ipfs-ipns-and-dnslink-in-5mins/6352/11 "2020-04-03T21:02:18Z")

</div>

Check this out: [https://docs-beta.ipfs.io/how-to/host-single-page-site/#point-your-domain-to-ipfs](https://docs-beta.ipfs.io/how-to/host-single-page-site/#point-your-domain-to-ipfs)
