Once the hosts file is deleted, there is almost no way to restore the default information to the original. The only way is to create a new host file when you mistakenly delete it and paste the default information. By applying this host file trick, you will get the original default hosts file.
Create a new host file when deleted on the computer
Step 1: First use the key combination Windows – R, then enter notepad to open Notepad.
Step 2: Copy content of default host file below.
# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP / IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
# For example:
# 184.108.40.206 rhino.acme.com # source server
# 220.127.116.11 x.acme.com # x client host
Step 3: Paste into Notepad.
Step 4: Save the file as hosts.txt
Step 5: Copy the hosts.txt file to the path C: Windows System32 drivers etc
Step 6: Rename hosts.txt to hosts (remove .txt)
With the above steps, you have created a new host file when successfully deleted by mistake. For more peace of mind, please bookmark this article by ElectrodealPro to use again when needed. Also, you guys can change as well edit the host file to perform various tasks on your computer.
The host file tips are quite diverse not just simply creating the host file, because the host file is an important factor to help access Facebook when blocked or to other blocked websites, so you should learn The main host file tips are to edit the host file, fix the error that the host file cannot be saved due to the lack of administrator rights set up ,,, all these host file tips have been introduced by us. sufficient and detailed.