Host Entry

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

  1. Open the /etc/hosts file
  2. Add the following line to the end of the file replacing all variables where necessary
    $ip_address www.$domain $domain


Was this article helpful?

mood_bad Dislike 1
mood Like 116
visibility Views: 1782