# Error in discourse-setup around handling of Lets Encrypt

**URL:** <https://meta.discourse.org/t/error-in-discourse-setup-around-handling-of-lets-encrypt/63354>\
**Category:** Bug\
**Created:** [2017 年5 月 25 日 12:36 UTC](https://meta.discourse.org/t/error-in-discourse-setup-around-handling-of-lets-encrypt/63354 "2017-05-25T12:36:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![Philip\_Colmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philip_colmer/32/120245_2.png) [@Philip\_Colmer](https://meta.discourse.org/u/Philip_Colmer)\
发布日期： [2017 年5 月 25 日 15:15 UTC](https://meta.discourse.org/t/error-in-discourse-setup-around-handling-of-lets-encrypt/63354/4 "2017-05-25T15:15:18Z")

</div>

@pfaffman It looks like the simplest change to the second problem is to replace:

```
local RESOLVED_IP=`dig +short $1`

```

with

```
local RESOLVED_IP=`dig +short $1 | tail -1`

```

This will ensure that the final answer from dig, which _should_ be the actual IP address, is what is then used by the rest of the script.

---

_[View the full topic](https://meta.discourse.org/t/error-in-discourse-setup-around-handling-of-lets-encrypt/63354)._
