A Hosts file is a text file containing mappings of hostnames to IP addresses, overriding DNS resolution, or used as backup when DNS isn't available.