How to modifying host file for Windows 10(other versions).

Modifying your hosts file enables you to override the domain name system (DNS) for a domain on a specific machine.

Modifying your hosts file causes your local machine to look directly at the Internet Protocol(IP) address that you specify.

Modifying the hosts file involves adding two entries to it. Each entry contains the IP address to which you want the site to resolve and a version of the Internet address. For example, add the following two entries points,

64.49.219.194 www.domain.com
64.49.219.194 domain.com

This article provides instructions for locating and editing the hosts file on the following operating systems:

  • Microsoft® Windows® 10, Windows 8, Windows 7, and Windows Vista™
  • Microsoft Windows NT™, Windows 2000, and Windows XP

Use the following instructions if you’re running Windows 10 or Windows 8:

  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad(or another text editor) and select Run as administrator(Log in with an administrator account and run).
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

5. Make the necessary changes to the file.

6. Select File > Save to save your changes.

Use the following instructions if you’re running Windows 7 or Windows Vista:

  1. Select Start > All Programs > Accessories.
  2. right-click Notepad(or another text editor) and select Run as administrator(Log in with an administrator account and run).
  3. The Windows needs your permission UAC window appears.
  4. Click Continue to grant permission.
  5. Notepad opens.
  6. In Notepad, select File > Open.
  7. In the File name field, enter the following path:
  8. C:\Windows\System32\Drivers\etc\hosts
  9. Select Open.
  10. Make the necessary changes to the file.
  11. Select File > Save to save your changes.

Use the following instructions if you’re running Windows NT, Windows 2000, or Windows XP:

  1. Select Start > All Programs > Accessories > Notepad.
  2. Select File > Open.
  3. In the File name field, enter C:\Windows\System32\Drivers\etc\hosts.
  4. Select Open.
  5. Make the necessary changes to the file.
  6. Select File > Save to save your changes.

Software Engineer and Outstanding Investor