Linux file for host file-based DNS resolution

Question:
Which file is responsible for host file-based DNS resolution?

  1. /etc/fstab
  2. /etc/passwd
  3. /etc/hosts
  4. /etc/resolv.conf
Answer:
C - the answer is /etc/hosts. Check this file and inspect the entries