hosts

Hot trends from Google Plus Search

hosts

Postby BlueWater on Thu Nov 24, 2011 6:40 pm

File content

The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more hostnames. Each field is separated by white space (blanks or tabulation characters). Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored. For example, a typical hosts file may contain the following:

Code: Select all
# This is an example of the hosts file
127.0.0.1  localhost loopback
::1        localhost

This example only contains entries for the loopback addresses of the system and their hostnames, a typical default content of the hosts file. The example illustrates that an IP address may have multiple hostnames, and that a hostname may be mapped to several IP addresses.

Chinese description

Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。

在Windows 2000/XP/Vista/Seven系统中位于%Systemroot%\System32\Drivers\Etc 文件夹中,其中,%Systemroot%指系统安装路径。例如,Windows XP 安装在C:\WINDOWS,那么Hosts文件就在C:\WINDOWS\system32\drivers\etc中。
Last edited by BlueWater on Thu Nov 24, 2011 6:48 pm, edited 2 times in total.
User avatar
BlueWater
 
Posts: 402
Joined: Sun Sep 11, 2011 8:41 pm

Re: hosts

Postby BlueWater on Thu Nov 24, 2011 6:44 pm

User avatar
BlueWater
 
Posts: 402
Joined: Sun Sep 11, 2011 8:41 pm

Facebook hosts

Postby BlueWater on Thu Nov 24, 2011 6:47 pm

User avatar
BlueWater
 
Posts: 402
Joined: Sun Sep 11, 2011 8:41 pm


Return to Google Plus Search

Who is online

Users browsing this forum: No registered users and 1 guest

cron