Use the hosts file to simulate a DNS record on Windows

Location of the hosts file : C:\Windows\System32\drivers\etc.

Pour ajouter un enregistrement :

1. Start notepad as administrator.

2. Open the hosts file located in C:\Windows\System32\drivers\etc.

To display the hosts file which has no extension it is necessary to select All files (*. *)

3. Add a record in the form:

ip_address dns_record
192.168.1.37 mon-server.maison.home

4. Save and close the file.

Romain Drouche
System Architect | MCSE: Core Infrastructure
IT infrastructure expert with over 15 years of field experience. Currently a Systems and Networks Project Manager and Information Systems Security (ISS) expert, I use my expertise to ensure the reliability and security of technological environments.

Leave a Comment