简言之:主机名 to IP地址,功能类似DNS,但与DNS不同的是hosts文件是本地系统管理员可控的。

The /etc/hosts file on linux is a computer file used by an operating system to map hostnames to IP addresses.

Unlike DNS, the hosts file is under the control of the local computer's administrator.

文件格式:

IP地址  ...

  • Items 1 - 1
  • 1