# Digital Ocean - 设置始终无法找到主机名

**URL:** https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327
**Category:** Self-hosting
**Created:** [2020年四月26日 08:51 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327 "2020-04-26T08:51:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Reserves](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@Reserves](https://meta.discourse.org/u/Reserves)
#### Post date: [2020年四月26日 08:51 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327/1 "2020-04-26T08:51:11Z")

</div>

我尝试了很多次，但在 Discourse 设置检查主机名时，它始终无法发现该主机在 443 或 80 端口上可访问。

即使我使用了标准的 Digital Ocean 设置，该设置明确指出这些端口是开放的。

我已通过 [dnschecker.org](http://dnschecker.org) 检查了要使用的子域名的 DNS 记录，一切看起来都正常。

然而，当我尝试设置时，系统总是返回以下信息：

“正在检查您的域名 . . .

警告：此服务器似乎无法在 [surf-restart.bigspin.co.uk:443](http://surf-restart.bigspin.co.uk:443) 上访问。  
连接到 [http://surf-restart.bigspin.co.uk](http://surf-restart.bigspin.co.uk)（端口 80）也失败。”

目前只是在测试，Droplet 的 IP 地址是 174.138.62.208，测试域名是 [surf-restart.bigspin.co.uk](http://surf-restart.bigspin.co.uk)。

有人能帮忙吗？我目前只想试用一下 Discourse，已经花了 4 个小时却毫无进展！

谢谢

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2020年四月26日 10:30 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327/2 "2020-04-26T10:30:15Z")

</div>

看起来您遇到了一些DNS问题。  
域名和子域名在我这边以及mxtoolbox.com上均无响应。

您应检查您管理域名的地方，确认设置是否正确。  
如果您最近更改了DNS，可能需要等待DNS生效，最长可达48小时。

---

<div class="post-metadata">

### Author: ![Reserves](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@Reserves](https://meta.discourse.org/u/Reserves)
#### Post date: [2020年四月26日 12:20 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327/3 "2020-04-26T12:20:36Z")

</div>

谢谢，真奇怪！

一直使用同一家域名公司已有 5 年，通常表现很好。

---

<div class="post-metadata">

### Author: ![Reserves](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@Reserves](https://meta.discourse.org/u/Reserves)
#### Post date: [2020年四月26日 12:53 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327/4 "2020-04-26T12:53:10Z")

</div>

谢谢。

更换了不同的域名提供商，现在一切正常 🙂

---

<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: [2020年五月26日 12:53 UTC](https://meta.discourse.org/t/digital-ocean-setup-never-finds-hostname/149327/5 "2020-05-26T12:53:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
