Unknown Host Exception even with Host Entry

Hello Team,

We found the issue with OS trying to fetch details from resolv.conf instead of /etc/hosts.
When we removed permission to invoke resolv.conf, We can see that procfiles of OS are reduced and host resolution started working.

Thanks to all for your inputs.