Hosts fail Windows operatsioonisüsteemis: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Line 25: Line 25:
|-
|-
| [[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> (see note)
| <code>[[Environment_variable#System_path_variables|%SystemRoot%]]\system32\drivers\etc\</code>
|-
|-
| [[Windows Mobile]]
| [[Windows Mobile]]
Line 36: Line 36:
| [[Mac OS X]], [[iPhoneOS]]
| [[Mac OS X]], [[iPhoneOS]]
|  
|  
| <code>/private/etc/hosts</code> or <code>/etc/hosts</code> (/etc on Mac OS X is a symbolic link to /private/etc)
| <code>/private/etc/hosts</code> or <code>/etc/hosts</code>
|-
|-
| Most [[Unix]] and [[Unix-like]] OSes [[POSIX]]
| Most [[Unix]] and [[Unix-like]] OSes [[POSIX]]

Revision as of 10:33, 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, 2000, XP, 2003, Vista, 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
Most Unix and Unix-like OSes 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