Modify a Host File

A host file is a file that allows a user to force a particular computer name (host name) 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.

Here's how you modify the host file.

  1. Open up Notepad 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, type the computer name of the server.

Now that the IP address and server name have been inserted into the host file, save and try a ping test to the server name in command prompt. Verify that the reply is showing the IP address you just typed in.

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



Article is closed for comments.