HOW FAR WILL YOU GO

Create your
Online Boutique
with WordPress

Espace Client sécurisé DATAenligne

Customer Area

Secure Connection

Hosts file: what does it stand for?

this article if you l’

le fichier hostfile
Picture of Etienne F. Carrier

Etienne F. Carrier

DATAenligne inc. | Domain name | Wordpress | VPS | Proxmox virtualization | DRP | Monitoring | Installation | Migration | Support | Cloud management | and +++ web hosting solutions and services

Hosts file: what does it stand for?

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. Hosts file: what does it stand for?

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 the Terminal application:
to access the “Hosts” file: sudo nano /etc/hosts
to empty the DNS Cache: sudo killall -HUP mDNSResponder

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

Etienne F. Carrier

Search

Hosting and Cloud Management of a web project are at the heart of any digital adventure that no one can pretend to knows its destination.

How far will you go

Sign up

Sign up for our blog. We’ll let you know when a new article is released.

Experts in
Web Hosting Solutions
Fully Managed

How far will you go

IN PRIMEUR

Sign up to receive our first communications