Question: What is the /etc/hosts file used for?

  1. resolving the local name
  2. blocking sites using iptables
  3. setting the hostname
  4. configuring DNS name servers

Answer: The correct answer of the above question is Option D:configuring DNS name servers