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: %SystemRoot%\system32\drivers\etc\hosts
    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:

  • system, plik hosts, hosts file, macos, linux, windows
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

What DNS server addresses do we have?

At Thecamels we have two DNS servers that work in a cluster to ensure continuous service in case...

Why do I get 500 - Internal Server Error?

When you upload  website to the server and then open it, error "500 - Internal Server Error" can...

How do I fix a session cleaning error in PrestaShop?

In order to fix the problem, please contact us via Client Area. Problem occurs due to incorrect...

Why my hosting account has been blocked?

An account may be suspended for several reasons, which are listed below:  No payment for...

Bandwidth limit on hosting

The transfer limit is the amount of data that your clients/users will download from the hosting...