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


– 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 😉

Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x