I Need a script that will check the host file on a list of servers, the list could be 500 servers in size.
So I need to find out whether the entries of server1 and/or server2 are defined in /etc/hosts.
output should include:
servername: Host entry found for (either of these entries)
servername: not found
servername: could not connect (need to check to see which servers we will have to check manually)