# Jobs::HandledExceptionWrapper: Wrapped SocketError: getaddrinfo: Name or service not known

**URL:** https://meta.discourse.org/t/jobs-handledexceptionwrapper-wrapped-socketerror-getaddrinfo-name-or-service-not-known/42652
**Category:** Support
**Created:** [16 Abril , 2016 15:00 UTC](https://meta.discourse.org/t/jobs-handledexceptionwrapper-wrapped-socketerror-getaddrinfo-name-or-service-not-known/42652 "2016-04-16T15:00:15Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![markplindsay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markplindsay/32/121849_2.png) [@markplindsay](https://meta.discourse.org/u/markplindsay)
#### Post date: [1 Maio , 2016 01:45 UTC](https://meta.discourse.org/t/jobs-handledexceptionwrapper-wrapped-socketerror-getaddrinfo-name-or-service-not-known/42652/5 "2016-05-01T01:45:43Z")

</div>

Hi @Falco + @fantasticfears. Thanks a lot for your responses. I got email working again after a little effort today.

Adding the `--dns` options in `/etc/default/docker` and restarting docker with `sudo service docker restart` did work. I was able to open a `/bin/bash` inside the Discourse container and execute `ping smtp.mandrillapp.com` successfully. However, I was not able to send a test email within the Discourse web UI.

The next thing I tried was adding the same `--dns` options to `docker_args` inside my `app.yml`. I also added `8.8.8.8` and `8.8.4.4` to `/etc/resolv.conf` inside the Discourse container as my nameservers. (There were some Linode nameservers in there. I remembered that I followed some Linode-specific instructions when installing Docker in the first place. So, I likely have a nonstandard Docker install…this may be the root of my problems.) After making those changes, I executed `/var/discourse/launcher rebuild app` on my host.

After Discourse came back up, I was able to send the test email successfully. This also upgraded my Discourse install, solving my [other problem](https://meta.discourse.org/t/conflicting-out-of-date-vs-up-to-date-statuses/41339) as a bonus!

Thanks again for your replies, you definitely got me on the right track.

---

_[View the full topic](https://meta.discourse.org/t/jobs-handledexceptionwrapper-wrapped-socketerror-getaddrinfo-name-or-service-not-known/42652)._
