# 输入IP可访问网站，但输入域名则无法访问

**URL:** <https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255>\
**Category:** Self-hosting\
**Created:** [2019 年2 月 15 日 15:10 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:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
发布日期： [2019 年2 月 15 日 15:13 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.

---

_[View the full topic](https://meta.discourse.org/t/website-shows-if-i-type-ip-but-not-if-i-type-site-name/109255)._
