Hosts fail Windows operatsioonisüsteemis: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Line 24: Line 24:
| <code>%WinDir%\</code>
| <code>%WinDir%\</code>
|-
|-
| [[Windows NT|NT]], [[Windows 2000|2000]], [[Windows XP|XP]], [[Windows Server 2003|2003]], [[Windows Vista|Vista]], [[Windows 7|7]]
| Windows NT|NT, Windows 2000|2000, Windows XP|XP, Windows Server 2003|2003, Windows Vista|Vista, Windows 7|7
| <code>[[Environment_variable#System_path_variables|%SystemRoot%]]\system32\drivers\etc\</code>
| <code>Environment_variable#System_path_variables|%SystemRoot%\system32\drivers\etc\</code>
|-
|-
| [[Windows Mobile]]
| Windows Mobile
| Registry key under <code>\HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts</code>
| Registry key under <code>\HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts</code>
|-
|-
| [[Macintosh]]
| Macintosh
| 9 and earlier
| 9 and earlier
| System Folder: Preferences or System folder
| System Folder: Preferences or System folder
|-
|-
| [[Mac OS X]], [[iPhoneOS]]
| Mac OS X, iPhoneOS
|  
|  
| <code>/private/etc/hosts</code> or <code>/etc/hosts</code>
| <code>/private/etc/hosts</code> or <code>/etc/hosts</code>
Line 42: Line 42:
| <code>/etc/hosts</code>  
| <code>/etc/hosts</code>  
|-
|-
| [[Novell NetWare]]
| Novell NetWare
|  
|  
| <code>SYS:etc\hosts</code>
| <code>SYS:etc\hosts</code>
|-
|-
| [[OS/2]] & [[eComStation]]
| OS/2 & eComStation
|  
|  
| <code>"bootdrive":\mptn\etc\</code>
| <code>"bootdrive":\mptn\etc\</code>
Line 57: Line 57:
| <code>C:\private\10000882\hosts</code> (AllFiles capable only)
| <code>C:\private\10000882\hosts</code> (AllFiles capable only)
|-
|-
| [[Android_(operating_system)|Android]]
| Android_(operating_system)|Android
|
|
| <code>/system/etc/hosts</code>
| <code>/system/etc/hosts</code>
|}
|}

Revision as of 10:36, 13 May 2010

Hosts fail on arvuti fail tõlgendamaks hosti nimesid ip aadressiks operatsiooni süsteemis. Mõnes operatsiooni süsteemis hosts faili sisu kasutatakse teistel meetodotitel, nagu näiteks DNS’is. Erinevalt DNS’ist on hosts fail arvuti administraatori kontrolli all. Hosts faili hoitakse text failina ning on nimega ’hosts’.


Sisu

Hosts fail sisaldab tekstide ridu, mis IP aadressist ning ühe või mitme hosti nimega. Hosts faili võib lisada kommentaare mis on tähistatud ’hash’ märgiga #. Märk peab olema rea esimene sümbol. Näide:

  1. Hosts faili n2ide

127.0.0.1 localhost


Asukoht

Hosts fail ei paikne kõikides operatsiooni süsteemides samas kohas. Tabel hosts faili asukoht erinevates operatsiooni süsteemides:


Operatsiooni süsteem Versioon Asukoht
Windows 95, 98, Me %WinDir%\
NT, Windows 2000|2000, Windows XP|XP, Windows Server 2003|2003, Windows Vista|Vista, Windows 7|7 %SystemRoot%\system32\drivers\etc\
Windows Mobile Registry key under \HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
Macintosh 9 and earlier System Folder: Preferences or System folder
Mac OS X, iPhoneOS /private/etc/hosts or /etc/hosts
Enamus Unix ja Unix-sarnased OP süsteemid POSIX /etc/hosts
Novell NetWare SYS:etc\hosts
OS/2 & eComStation "bootdrive":\mptn\etc\
Symbian Symbian OS 6.1-9.0 C:\system\data\hosts
Symbian OS 9.1+ C:\private\10000882\hosts (AllFiles capable only)
Android /system/etc/hosts