/etc/hosts文件
2011-05-27 10:20
176 查看
/etc/hosts文件
当机器启动时,在可以查询DNS以前,机器需要查询一些主机名到IP地址的匹配。这些匹配信息存放在/etc/hosts文件中。在没有域名服务器情况下,系统上的所有网络程序都通过查询该文件来解析对应于某个主机名的IP地址。
下面是一个“/etc/hosts”文件的示例:
IP Address Hostname Alias
127.0.0.1 Localhost Gate.openarch.com
208.164.186.1 gate.openarch.com Gate
………… ………… ………
最左边一列是主机IP信息,中间一列是主机名。任何后面的列都是该主机的别名。一旦配置完机器的网络配置文件,应该重新启动网络以使修改生效。使用下面的命令来重新启动网络:/etc/rc.d/init.d/network
restart
/etc/inetd.conf文件
当机器启动时,在可以查询DNS以前,机器需要查询一些主机名到IP地址的匹配。这些匹配信息存放在/etc/hosts文件中。在没有域名服务器情况下,系统上的所有网络程序都通过查询该文件来解析对应于某个主机名的IP地址。
下面是一个“/etc/hosts”文件的示例:
IP Address Hostname Alias
127.0.0.1 Localhost Gate.openarch.com
208.164.186.1 gate.openarch.com Gate
………… ………… ………
最左边一列是主机IP信息,中间一列是主机名。任何后面的列都是该主机的别名。一旦配置完机器的网络配置文件,应该重新启动网络以使修改生效。使用下面的命令来重新启动网络:/etc/rc.d/init.d/network
restart
/etc/inetd.conf文件
相关文章推荐
- /etc/hosts文件详解
- 关于/etc/hosts文件
- /etc/hosts 文件引起的监听无法启动的处理过程 推荐
- Linux中/etc/hosts文件总是被自动修改
- /etc/hosts文件作用
- /etc/hosts文件中的::1是什么意思
- linux /etc/hosts 文件作用
- 配置Oracle RAC时修改/etc/hosts文件的注意事项
- linux /etc/hosts文件作用
- Linux操作系统下/etc/hosts文件详解
- Linux 修改 etc/hosts文件详细介绍
- Linux hostname主机名配置文件与文件 /etc/hosts解说[转]
- /bin/hostname $HOSTNAME /etc/hosts文件关系
- linux下/etc/hosts文件
- linux /etc/resolv.conf /etc/hosts配置文件详解
- Linux /etc/hosts文件
- linux /etc/hosts文件作用
- 关于/etc/hosts文件
- Linux hostname主机名配置文件/etc/hosts详解
- Linux hostname主机名的配置文件/etc/hosts详细介绍