# Mautic does not resolve DNS even though host OS does

**URL:** <https://forum.mautic.org/t/mautic-does-not-resolve-dns-even-though-host-os-does/9009>\
**Category:** Product Support\
**Created:** [July 20, 2017, 5:12pm UTC](https://forum.mautic.org/t/mautic-does-not-resolve-dns-even-though-host-os-does/9009 "2017-07-20T17:12:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbaxtell](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@cbaxtell](https://forum.mautic.org/u/cbaxtell)\
**Post date:** [July 20, 2017, 5:12pm UTC](https://forum.mautic.org/t/mautic-does-not-resolve-dns-even-though-host-os-does/9009/1 "2017-07-20T17:12:49Z")

</div>

So I have a clean install of Mautic 2.9.0 on OpenBSD 6.1. The host OS resolves DNS lookups successfully (verified by dig [examplehostname.com](http://examplehostname.com)); however, when attempting to enter in the email settings fields under “Monitored Inbox Settings” when I click the “Test connection and fetch folders” button I receive the following error message:

Code:

Error communicating with the IMAP server: No such host as examplehostname.com

Looking into the mautic/app/logs/mautic\_prod-2017-07-20.php file It shows the following error:  

Code:

[2017-07-20 09:43:11] mautic.NOTICE: PHP Notice - Unknown: No such host as examplehostname.com (errflg=2) - in file Unknown - at line 0 [] []

  
Additionally, under Configuration -\> System Settings -\> Miscellaneous Settings when I click on the "Update IP Lookup Data Store" I receive the following error:  

Code:

Automatically fetching the IP lookup data failed. Download [...]

Looking again into the mautic/app/logs/mautic\_prod-2017-07-20.php file It shows the following error:  

Code:

[2017-07-20 10:08:25] mautic.ERROR: Failed to fetch remote IP data: fsockopen(): unable to connect to geolite.maxmind.com:80 (php\_network\_getaddresses: getaddrinfo failed: no address associated with name) [] []

  
So what, probably something simple, am I missing that can resolve this issue....?  
  
Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![cbaxtell](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@cbaxtell](https://forum.mautic.org/u/cbaxtell)\
**Post date:** [July 20, 2017, 5:12pm UTC](https://forum.mautic.org/t/mautic-does-not-resolve-dns-even-though-host-os-does/9009/2 "2017-07-20T17:12:49Z")

</div>

So I have a clean install of Mautic 2.9.0 on OpenBSD 6.1. The host OS resolves DNS lookups successfully (verified by dig [examplehostname.com](http://examplehostname.com)); however, when attempting to enter in the email settings fields under “Monitored Inbox Settings” when I click the “Test connection and fetch folders” button I receive the following error message:

`Error communicating with the IMAP server: No such host as examplehostname.com
`  
Looking into the mautic/app/logs/mautic\_prod-2017-07-20.php file It shows the following error:

`[2017-07-20 09:43:11] mautic.NOTICE: PHP Notice - Unknown: No such host as examplehostname.com (errflg=2) - in file Unknown - at line 0 [] []
`

Additionally, under Configuration -\> System Settings -\> Miscellaneous Settings when I click on the “Update IP Lookup Data Store” I receive the following error:

`Automatically fetching the IP lookup data failed. Download [...]
`  
Looking again into the mautic/app/logs/mautic\_prod-2017-07-20.php file It shows the following error:

`[2017-07-20 10:08:25] mautic.ERROR: Failed to fetch remote IP data: fsockopen(): unable to connect to geolite.maxmind.com:80 (php_network_getaddresses: getaddrinfo failed: no address associated with name) [] []
`

So what, probably something simple, am I missing that can resolve this issue…?

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![cbaxtell](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@cbaxtell](https://forum.mautic.org/u/cbaxtell)\
**Post date:** [July 24, 2017, 3:43pm UTC](https://forum.mautic.org/t/mautic-does-not-resolve-dns-even-though-host-os-does/9009/3 "2017-07-24T15:43:18Z")

</div>

Issues was resolved with assistance from developers (see GitHub post [](https://github.com/mautic/mautic/issues/4492) ). Root cause with failure to copy over a couple of config files to the httpd’s chroot jail etc directory. Copying them over, and restarting the httpd and php services resolved the issue.

Chris
