Linuxize: The hosts file is used to map domain names (hostnames) to IP addresses.