What is the /etc/hosts file used for?
configuring DNS name servers
setting the hostname
blocking sites using iptables
resolving the local name