The hosts file is a text file that can be used to provide a static form of name resolution that only impacts the host that the hosts file is stored on. On a Windows device, the file is stored at %systemroot%\System32\drivers\etc\:
Since this is a straightforward text file, it can be edited using any standard text editor, such as Notepad; however, to be able to edit it, you need to run Notepad as an administrator. Once we have the file open, we can configure it accordingly.
The file contains a number of comments and examples of how to configure the file. Each of these is commented out by using a #. Any text that follows a # is treated as a comment and not actioned. From the preceding examples, we can see that the IP address is on the left-hand side and the FQDN is on the right-hand side.
The concept of hosts files goes back...