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