Windows Server

How to locate and edit the hosts file on Windows

Hosts files have been in existence since ARPANET time and they are used to resolve hostnames before DNS was introduced. These files aide in network name resolution. The syntax is consistent across all platforms. it is worth to note that, most hosts files will have several entries for loopback.

If you would like to create some entries or modify the entries in host files, the below steps are steps to go about it.

On Windows 10 and Windows Server, the location of the host file can be found in this path

C:\windows\system32\drivers\etc\hosts

– Select a Text Editor to have the host file opened
– I have also created a record for test.techdirect.local.
– When you are done, click on save and close the text editor.

That is all that needs to be done, if you do not intend to use DNS for this 😉

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x