曲径通幽论坛

标题: openSUSE 下的 /etc/hosts [打印本页]

作者: beyes    时间: 2008-12-13 01:57
标题: openSUSE 下的 /etc/hosts
如下示例:(在通讯时,需要进行名称解析时,系统先对 hosts 文件进行查询,然后才到 DNS --可以修改 /etc/nsswitch.conf 来改变查询的先后顺序)
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#   
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
127.0.0.2       linux-beyes.groad linux-beyes





欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2