/etc/hosts entry

The entries in the /etc/hosts file 

You can use below mentioned steps to make changes in the file.

  1. If you are using a Windows machine

    Add entry in this file : %SystemRoot%\system32\drivers\etc\ (where %SystemRoot% is C:\Windows in a Normal case, change it accordingly)
  2. If you are using a Linux machine, Add entry here in this file : /etc/hosts
  3. If you are using a Mac, Add entry here in this file : /private/etc/hosts
The entry is:
<IP> domain.com www.domain.com

Example :

192.234.45.12   example.com  www.example.com

No comments: