Network utilities (such as ping, wget, curl etc.) may not work in the chrooted environment. For example it is not possible to get name resolution from the shell using any of the available tools :
bash-4.2$ ping google.com
ping: unknown host google.com
But ping with IP address works fine:
bash-4.2$ ping 188.8.131.52
PING 184.108.40.206 (220.127.116.11) 56(84) bytes of data.
64 bytes from 18.104.22.168: icmp_req=1 ttl=41 time=200 ms
64 bytes from 22.214.171.124: icmp_req=2 ttl=41 time=75.7 ms
The shell access type for system user is specified in the
Web Hosting Access section.
There are no libraries in the chrooted environment such as
libnss_dns.so.2 which are necessary for name service switch (NSS).
Copy required libraries to the chrooted environment:
# cp /lib/x86_64-linux-gnu/libnss_files.so.2 /var/www/vhosts/example.com/lib/libnss_files.so.2
# cp /lib/x86_64-linux-gnu/libnss_dns.so.2 /var/www/vhosts/example.com/lib/libnss_dns.so.2
If your operating system is 32bit you should copy these libraries from: