Host Entry
The hosts file is a computer file used to map hostnames (domains) to IP addresses. When your computer tries to resolve a domain name, the first place it looks is in the operating systems host file.
How to create a Host Entry
- Open the /etc/hosts file
- Add the following line to the end of the file replacing all variables where necessary
$ip_address www.$domain $domain