

# localhost name resolution is handled within DNS itself.Ĭhanges you make to the hosts file take effect immediately. # lines or following the machine name denoted by a '#' symbol. # Additionally, comments (such as these) may be inserted on individual # The IP address and the host name should be separated by at least one # be placed in the first column followed by the corresponding host name. # entry should be kept on an individual line. # This file contains the mappings of IP addresses to host names. # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # Copyright (c) 1993-2009 Microsoft Corp. This is the default hosts file that comes with all Windows based systems. The content of the hosts file looks like the lines below. Windows hosts file is located at the path below: c:\Windows\System32\Drivers\etc\hosts When you’re ready to edit Windows 11 local host file, follow the steps below: Windows 11 Hosts FileĪs we mentioned above, the hosts file is a plain-text file used by the operating systems to map or connect IP addresses to hostnames on the local computer. Windows 11 is the successor to Windows 10 and it’s expected to be released later this year. Windows 11 is a major release of the Windows NT operating system developed by Microsoft. If you’re a student or new user looking for a computer to start learning on, the easiest place to start is Windows 11. The lines starting with # are comments and are ignored. When you’re dealing with hosts file, the IP address and the domain or hostname should be separated by at least one space or tab. If the IP to domain mapping isn’t included in the host file, then it looks up a DNS server online. While translating the resource names to IPs, the local hosts file is the first file your operating look at.
