Where is the Windows Host File?

The windows host file is a file included in Microsoft Windows that can be set to override where domain names resolve to. For example, you can force set “www.domain.com” to resolve to IP address “”, or locally.

The Windows Host File location in Windows is:

Windows 95 = C:windows
Windows 98 = C:\windows
Windows Me = C:\windows
Windows 2000 = C:windows\system32\drivers\etc
Windows XP = C:\windows\system32\drivers\etc
Windows NT = C:\winnt\system32\drivers\etc
Windows Vista = C:\windows\system32\drivers\etc
Windows 7 = C:\windows\System32\drivers\etc

In order to edit this file in later versions of windows, you may need to locate NotePad in Start -> All Programs -> Accessories -> Notepad, Right Click and select “Run as Administrator”. Then, locate to the location above and select “All files” for File Types in order to show the hosts file.

As always, I suggest a full backup of any files before you make modifications.

About the Author
Creedhosting is leading web hosting company In India. We sells world class SSD Hosting, Domain Names, SSL Certificates, Website Builders and other Web products. We offer to our customers high quality and affordable services since 2010. For more details you can check our website https://www.creedhosting.com

Leave a Reply


We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

I accept I decline Privacy Center Privacy Settings