Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to reset the Hosts file back to the default


View products that this article applies to.

Summary

This article helps you reset the Hosts file back to the default.
 

What's the Hosts file

The Hosts file is used by the operating system to map human-friendly hostnames to numerical Internet Protocol (IP) addresses which identify and locate a host in an IP network. The hosts file is one of several system resources that address network nodes in a computer network and is a common part of an operating system's IP implementation.

The Hosts file contains lines of text consisting of an IP address in the first text field followed by one or more host names. Each field is separated by white space (Tabs are often preferred for historical reasons, but spaces are also used). Comment lines may be included, and they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored.

If the Hosts file is changed from default, resetting it can help resolve some connectivity issues.

↑ Back to the top


Resolution

To reset the Hosts file back to the default, follow these steps according to your operating system:

Windows 10
Windows 8.1
Windows 7 and earlier versions of Windows

↑ Back to the top


More Information

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

↑ Back to the top


Keywords: kbsurveynew, consumerwin7track, consumertargetwinfy12, kbsmbportal, kb

↑ Back to the top

Article Info
Article ID : 972034
Revision : 20
Created on : 12/19/2019
Published on : 12/19/2019
Exists online : False
Views : 666