# Discourse setup script hostname validation for Let's Encrypt

**URL:** <https://meta.discourse.org/t/discourse-setup-script-hostname-validation-for-lets-encrypt/141911>\
**Category:** Development\
**Created:** [February 17, 2020, 11:50pm UTC](https://meta.discourse.org/t/discourse-setup-script-hostname-validation-for-lets-encrypt/141911 "2020-02-17T23:50:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 19, 2020, 5:37pm UTC](https://meta.discourse.org/t/discourse-setup-script-hostname-validation-for-lets-encrypt/141911/10 "2020-02-19T17:37:51Z")

</div>

> [@codinghorror](#):
>
> Domain resolution _must_ pass @falco, otherwise setup should halt

So I made some changes in a branch. Here is how it is going to work:

Using a wrong hostname:

```plaintext
root@droplet:/var/discourse# ./discourse-setup

Hostname for your Discourse?: bad-domain.com

Checking your domain name . . .
WARNING:: This server does not appear to be accessible at bad-domain.com:443.

A connection to http://bad-domain.com (port 80) also fails.

This suggests that bad-domain.com resolves to the wrong IP address
or that traffic is not being routed to your server.

Google: "open ports YOUR CLOUD SERVICE" for information for resolving this problem.

If you want to proceed anyway, you will need to run cp samples/standalone.yml containers/app.yml
and edit the containers/app.yml file manually.

```

Using a correct hostname:

```plaintext
root@droplet:/var/discourse# ./discourse-setup

Hostname for your Discourse?: good-domain.com

Checking your domain name . . .
Connection to good-domain.com succeeded.
Email address for admin account(s)? : 

```

Changes are pending at

> <https://github.com/discourse/discourse_docker/pull/456>

Does it looks good @pfaffman @codinghorror ?

---

_[View the full topic](https://meta.discourse.org/t/discourse-setup-script-hostname-validation-for-lets-encrypt/141911)._
