<P> This example only contains entries for the loopback addresses of the system and their host names, a typical default content of the hosts file . The example illustrates that an IP address may have multiple host names (localhost and loopback), and that a host name may be mapped to both IPv4 and IPv6 IP addresses, as shown on the first and second lines respectively . </P> <P> The location of the hosts file in the file system hierarchy varies by operating system . It is usually named hosts, without an extension . </P> <Table> <Tr> <Th> Operating System </Th> <Th> Version (s) </Th> <Th> Location </Th> </Tr> <Tr> <Td> Unix, Unix - like, POSIX </Td> <Td> </Td> <Td> / etc / hosts </Td> </Tr> <Tr> <Td> Microsoft Windows </Td> <Td> 3.1 </Td> <Td>% WinDir% \ HOSTS </Td> </Tr> <Tr> <Td> 95, 98, ME </Td> <Td>% WinDir% \ hosts </Td> </Tr> <Tr> <Td> NT, 2000, XP, 2003, Vista, 2008, 7, 2012, 8, 10 </Td> <Td>% SystemRoot% \ System32 \ drivers \ etc \ hosts </Td> </Tr> <Tr> <Td> Windows Mobile, Windows Phone </Td> <Td> </Td> <Td> Registry key under HKEY_LOCAL_MACHINE \ Comm \ Tcpip \ Hosts </Td> </Tr> <Tr> <Td> Apple Macintosh </Td> <Td> 9 and earlier </Td> <Td> Preferences or System folder </Td> </Tr> <Tr> <Td> Mac OS X 10.0--10.1. 5 </Td> <Td> (Added through NetInfo or niload) </Td> </Tr> <Tr> <Td> Mac OS X 10.2 and newer </Td> <Td> / etc / hosts (a symbolic link to / private / etc / hosts) </Td> </Tr> <Tr> <Td> Novell NetWare </Td> <Td> </Td> <Td> SYS: etc \ hosts </Td> </Tr> <Tr> <Td> OS / 2 & eComStation </Td> <Td> </Td> <Td> "bootdrive": \ mptn \ etc \ </Td> </Tr> <Tr> <Td> Symbian </Td> <Td> Symbian OS 6.1--9.0 </Td> <Td> C: \ system \ data \ hosts </Td> </Tr> <Tr> <Td> Symbian OS 9.1 + </Td> <Td> C: \ private \ 10000882 \ hosts </Td> </Tr> <Tr> <Td> MorphOS </Td> <Td> NetStack </Td> <Td> ENVARC: sys / net / hosts </Td> </Tr> <Tr> <Td> AmigaOS </Td> <Td> <4 </Td> <Td> AmiTCP: db / hosts </Td> </Tr> <Tr> <Td> </Td> <Td> DEVS: Internet / hosts </Td> </Tr> <Tr> <Td> AROS </Td> <Td> </Td> <Td> ENVARC: AROSTCP / db / hosts </Td> </Tr> <Tr> <Td> Android </Td> <Td> </Td> <Td> / etc / hosts (a symbolic link to / system / etc / hosts) </Td> </Tr> <Tr> <Td> iOS </Td> <Td> iOS 2.0 and newer </Td> <Td> / etc / hosts (a symbolic link to / private / etc / hosts) </Td> </Tr> <Tr> <Td> TOPS - 20 </Td> <Td> </Td> <Td> <SYSTEM> HOSTS. TXT </Td> </Tr> <Tr> <Td> Plan 9 </Td> <Td> </Td> <Td> / lib / ndb / hosts </Td> </Tr> <Tr> <Td> BeOS </Td> <Td> </Td> <Td> / boot / beos / etc / hosts </Td> </Tr> <Tr> <Td> Haiku </Td> <Td> </Td> <Td> / boot / common / settings / network / hosts </Td> </Tr> <Tr> <Td> OpenVMS </Td> <Td> UCX </Td> <Td> UCX $HOST </Td> </Tr> <Tr> <Td> TCPware </Td> <Td> TCPIP $HOST </Td> </Tr> <Tr> <Td> RISC OS </Td> <Td> 3.7, 5 </Td> <Td>! Boot. Resources.! Internet. files. Hosts </Td> </Tr> <Tr> <Td> later boot sequence </Td> <Td>! Boot. Choices. Hardware. Disabled. Internet. Files. Hosts </Td> </Tr> </Table> <Tr> <Th> Operating System </Th> <Th> Version (s) </Th> <Th> Location </Th> </Tr>

Where is the host file on a windows 7