I am in the process of making our application into smaller services. I add the new services on a back end server (i.e. not accessible to public) and then make entries in /etc/hosts file of our web servers. Sample entry
10.160.x.xx newservice.mydomain.com
This approach works. But if I test the service from the web server, I see that ping works, not nslookup. So ping newservice.mydomain.com
is successful, not nslookup newservice.mydomain.com
Why is it so? How can I make nslookup also work?