# Website shows if I type IP, but not if I type site name

**URL:** https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255
**Category:** Self-hosting
**Created:** [February 15, 2019, 3:10pm UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255 "2019-02-15T15:10:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DanielLav](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DanielLav](https://meta.discourse.org/u/DanielLav)
#### Post date: [February 15, 2019, 3:10pm UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255/1 "2019-02-15T15:10:26Z")

</div>

Hello, i’d firstly like to apologise for the the lack of detail in the title and the lack of detail that’ll be in the post. I’m new to all of this and I have no idea what I’m doing.

Basically yesterday I made a digitalocean account, and I setup a droplet, followed the creation process to make a discourse site, however the site only shows when I type the IP address into the URL bar, if I type the hostname, I either get an error saying the website cannot be found or ERR\_NAME\_NOT\_RESOLVED.

I’ve tried using a personal website that I bought and never used, and I tried using the domain [discourse.craftlads.com](http://discourse.craftlads.com). Nothing seems to be working, like I said I can access the website and admin settings when I enter the IP into the URL bar, but not if I type the hostname in.

I’ve tried a lot of google searches and I can’t figure out what’s wrong, it’s probably a simple fix but I like I said i’m only 17 and i’m new to all this, so I honestly need the simple answer.

Thanks.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [February 15, 2019, 3:13pm UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255/2 "2019-02-15T15:13:48Z")

</div>

Did you create a DNS A record for your subdomain `discourse.craftlads.com` and pointed it to your droplet IP?

I don’t see a valid A or AAAA record associated to your domain.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 15, 2019, 4:54pm UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255/3 "2019-02-15T16:54:16Z")

</div>

A DNS lookup shows:

```
No match for domain "CRAFTLADS.COM".                             

```

So you either haven’t registered that domain or you typed it wrong here.

And if you haven’t configured DNS for the domain you also haven’t gotten mail configured, so Discourse won’t be able to send mail.

If you’d like help getting things set up correctly, see [https://www.literatecomputing.com/discourse-installation-packages/](https://www.literatecomputing.com/discourse-installation-packages/)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 9, 2022, 5:31pm UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255/4 "2022-03-09T17:31:08Z")

</div>



---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 10, 2022, 11:20am UTC](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255/5 "2022-03-10T11:20:31Z")

</div>


