How to edit host file in system
Hosts file role, is to translate friendly domain names into their numerical equivalents, i.e. IP addresses. Host file is a text file containing an IP address on each line followed by, one or more domain names, which can be separated by spaces or tabs. Lines beginning with
# are comments (and are therefore ignored).
Where can I find host file?
Depending on what OS You may be using, host file location is differ. Below You will find default paths to it:
- Windows - the default path to host file is:
There is also a graphical tool for editing this file called: Hosts File Editor,
- Linux distributions - the default path to host file is: /etc/hosts,
- MacOS - the default path to host file is: /private/etc/hosts.
Important! Remember to edit the hosts file with administrator/root privileges.
Here is how an example entry in a hosts file looks like:
192.168.10.20 thecamels.eu www.thecamels.eu
220.127.116.11 subdomain1.thecamels.eu subdomain2.thecamels.eu
system, plik hosts, hosts file, macos, linux, windows