014.01.40.3. How does the /etc/hosts file play a role in hostname lookups, and can you provide an example of entries in this file for local subnet hosts?
On most systems, user can override hostname lookups with the /etc/hosts file, usually the file contains the IP addresses of localhost in it. The other entries illustrate a simple way to add hosts on a local subnet. Here's an example of the entries in this file:-