By: Thomas Maerz user 23 Dec 2015 at 10 a.m. CST

5 Responses
Thomas Maerz gravatar
After doing a fresh install on CentOS 6 and deploying Gluu per http://www.gluu.org/docs/admin-guide/deployment/centos/, I can't resolve DNS names within the chroot environment. I can resolve them from the host, but within chroot it won't resolve anything. This is also preventing the application from being able to reach our SMTP server and DNS resolution is going to be necessary to even test this.

By Aliaksandr Samuseu staff 23 Dec 2015 at 10:34 a.m. CST

Aliaksandr Samuseu gravatar
Hi, Thomas. Have you checked /etc/resolv.conf already? Are there some dns servers listed? If there is none, could you add something like 8.8.8.8 there and try again? Regards, Alex.

By Thomas Maerz user 23 Dec 2015 at 10:47 a.m. CST

Thomas Maerz gravatar
Hi! I thought I set the DNS servers before running the installers to my local ones, but it appears that was either not the case or they were overwritten. It was set to 8.8.8.8 already but that wasn't working in the CHROOT environment. After I set them to our local DNS servers again and rebooted, it is working now. You can close this issue, thanks for your help!

By William Lowe user 23 Dec 2015 at 11 a.m. CST

William Lowe gravatar
Thanks, Thomas. I'll also make a note to our QA staff to double check that the DNS server is not being overwritten.

By Thomas Maerz user 18 Jul 2016 at 2:20 p.m. CDT

Thomas Maerz gravatar
This is still working less than ideal. On a fresh install, the installs points the DNS servers inside the CHROOT environment at google's DNS servers (8.8.8.8 and 8.8.4.4). This causes nothing to be able to resolve unless you have a public DNS entry for anything you are pointing gluu's processes at (AD servers, email servers, syslog, etc.) Ideally, this should stay in sync with the Host OS's DNS servers in /etc/resolv.conf or be configurable in the GUI. Changing the DNS server in the Gluu GUI under configuration --> System Configuration does not appear to do anything.

By Yuriy Movchan staff 19 Jul 2016 at 8:30 a.m. CDT

Yuriy Movchan gravatar
Hi, I'm not sure that we need to o automatic sync /etc/resolv.conf from Host OS. It may not required in some case. As result we will choose option 2. We will check why it's not possible to specify DNS name in admin GUI. Thank you for question. See [issue 301](https://github.com/GluuFederation/oxTrust/issues/301).