How to Modify a Hosts File

Problem

A hosts file is a file that allows a user to force a particular computer name (hostname) to be associated with a particular IP address. With proper DNS settings, there would be 1 computer name associated with 1 IP address, but due to various situations, there may be a reason to force a different IP address for a particular name.

Solution

The following steps go over how to modify the hosts file:

  1. Open up Notepad as Administrator (Right-click on Notepad to select "Run as Administrator")
  2. Go to File > Open and navigate to: C:\Windows\System32\drivers\etc\hosts
  3. Below the # symbol at the bottom, type in the desired IP address, hit the Tab button, and type the computer name of the server.

    Modify the hosts file in Notepad
  4. Now that the IP address and server name have been inserted into the hosts file, save and try a ping test to the server name in Command Prompt. Verify that the reply shows the IP address that was typed in.

For additional support, existing customers can submit a ticket or new customers can contact Hawk Ridge Systems.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

Comments

0 comments

Article is closed for comments.