|
Tomcat unable to access DNS in chroot
Hi
I'm developing a web application that needs to download files (docs, pdfs, anything really) from their URLs. The code uses java.net.URL.openStream() to connect to the URLs and perform the download. I've had the application running fine on Tomcat, but have recently moved Tomcat into a chroot jail and now the download functionality has stopped working. I'm getting a java.net.UnknownHostException which indicates that the code cannot resolve the hostname in the URL. As the code definitely works outside of the chroot I believe that Tomcat can no longer access DNS when in the chroot. So my question is how can I give Tomcat access to DNS while in the chroot?
Any help would be greatly appreciated.
P.S. I'm new to Linux (and Unix-type systems in general) so please forgive me if this is a daft question.
Thanks
|