# Initial email failure. Job exception: getaddrinfo: Name or service not known

**URL:** https://meta.discourse.org/t/initial-email-failure-job-exception-getaddrinfo-name-or-service-not-known/42301
**Category:** Self-hosting
**Created:** [April 9, 2016, 5:08pm UTC](https://meta.discourse.org/t/initial-email-failure-job-exception-getaddrinfo-name-or-service-not-known/42301 "2016-04-09T17:08:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [April 11, 2016, 10:39am UTC](https://meta.discourse.org/t/initial-email-failure-job-exception-getaddrinfo-name-or-service-not-known/42301/2 "2016-04-11T10:39:50Z")

</div>

Probably Discourse can’t figure out DNS for your `<mycompany>.com`.

> [@How to restore your site from backup in the terminal?](https://meta.discourse.org/t/how-to-restore-your-site-from-backup-in-the-terminal/42179/6):
>
> Follow the link. There is a detailed step showing how to do that. (1 - 5) For step 3, use DOCKER\_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" as this suggests:

Set dns in `DOCKER_OPTS`. You can point to Google DNS server as `8.8.8.8` or ask your IT about internal DNS server (probably you have one)

Then restart docker. You can find the detailed steps by following the link.

---

_[View the full topic](https://meta.discourse.org/t/initial-email-failure-job-exception-getaddrinfo-name-or-service-not-known/42301)._
