Hosts file: what does it stand for?

et   cet article!

Fichier Hosts DATAenligne

The Hosts file has the function of indicating to your computer the path to follow to reach an IP address or a domain name of a website.

navigation bar

By default, the Hosts file will tell your browser to display the content of the requested website in the web navigation bar.

What is the use of modifying this file?

The Hosts file allows you to register an exception that allows you to ignore the default route by forcing your browser to go to another IP address.

This function is useful when you have a development site hosted in another server and whose IP address differs from the production site. By adding an exception, you will force your computer to go through the specified path as shown in the following table.

To edit your Hosts file, here are instructions you can follow for a computer running MacOS or Windows:

YouTubeTutorial pour MacOS

YouTubeTutorial pour Windows

For MacOS users, here are the commands to use in your Terminal application to access the Hosts file: sudo nano /etc/hosts
than flush the DNS Cache with this command : sudo killall -HUP mDNSResponder

If you have any difficulties, do not hesitate to contact us via the ticket office and we will assist you.

Etienne F. Carrier

Etienne F. Carrier

DATAenligne inc.

Experts en hébergement web et en gestion nuagique

Ton commentaire

Récents commentaires

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Selon nous, chaque projet web a des besoins technologiques qui lui sont propres.

    Articles récents


    Abonnes-toi à notre blogue. On informera dès la sortie d’un nouvel article.


    Download ELEMENTOR now to create your WordPress site. It’s an easy-to-use Website Builder.

    Elementor is the choice of thousands of Web creators and designers. Adopt it!

    Inscris-toi à notre blogue

    Nous t’informerons dès qu’un nouvel article est disponible.