The host file provides a list of static DNS entries for a specific computer. In general, the computer checks it's host file for DNS lookup before going to the DNS server.
If the server name is found in the host file, the computer uses the specified IP address. Otherwise, the server queries a DNS server for name lookup.